From cf695173bc8cc8aa5c01b3a5b0b7d115dc9d7426 Mon Sep 17 00:00:00 2001 From: Ludwig Nussel Date: Thu, 26 Jun 2008 14:00:01 +0000 Subject: [PATCH] detect and use qemu-kvm automatically --- build | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/build b/build index d29d905..de6820f 100755 --- a/build +++ b/build @@ -678,6 +678,11 @@ if test -n "$KILL" ; then cleanup_and_exit 0 fi +if [ -n "$USE_QEMU" -a -r /dev/kvm -a -x "$qemu_bin"-kvm ]; then + echo "using qemu-kvm" + qemu_bin="$qemu_bin-kvm" +fi + if [ -z "$RPMLIST" ]; then if [ -z "$repos" -a -z "$BUILD_RPMS" ]; then BUILD_RPMS="/media/dvd/suse" -- 2.7.4