projects
/
platform
/
upstream
/
dracut.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6730707
)
run-qemu: specify PATH
author
Harald Hoyer
<harald@redhat.com>
Fri, 9 Oct 2009 11:17:45 +0000
(13:17 +0200)
committer
Harald Hoyer
<harald@redhat.com>
Fri, 9 Oct 2009 11:17:45 +0000
(13:17 +0200)
test/run-qemu
patch
|
blob
|
history
diff --git
a/test/run-qemu
b/test/run-qemu
index
3a2a12c
..
a63a644
100755
(executable)
--- a/
test/run-qemu
+++ b/
test/run-qemu
@@
-1,6
+1,8
@@
#!/bin/bash
# Check which virtualization technology to use
# We prefer kvm, kqemu, userspace in that order.
+export PATH=/sbin:/bin:/usr/sbin:/usr/bin
+
[[ -x /usr/bin/qemu ]] && BIN=/usr/bin/qemu && ARGS=""
$(lsmod | grep -q '^kqemu ') && BIN=/usr/bin/qemu && ARGS="-kernel-kqemu "
[[ -c /dev/kvm && -x /usr/bin/kvm ]] && BIN=/usr/bin/kvm && ARGS=""