run-qemu: specify PATH
authorHarald Hoyer <harald@redhat.com>
Fri, 9 Oct 2009 11:17:45 +0000 (13:17 +0200)
committerHarald Hoyer <harald@redhat.com>
Fri, 9 Oct 2009 11:17:45 +0000 (13:17 +0200)
test/run-qemu

index 3a2a12c..a63a644 100755 (executable)
@@ -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=""