allow abuild user to run accelerated qemu also in XEN.
authorAdrian Schröter <adrian@suse.de>
Wed, 8 Apr 2009 16:26:47 +0000 (16:26 +0000)
committerAdrian Schröter <adrian@suse.de>
Wed, 8 Apr 2009 16:26:47 +0000 (16:26 +0000)
build

diff --git a/build b/build
index f713017..9976f5a 100755 (executable)
--- a/build
+++ b/build
@@ -375,6 +375,10 @@ detect_vm_2nd_stage()
     RUNNING_IN_VM=true
     mount -orw -n -tproc none /proc
     mount -n -o remount,rw /
+    if [ -e /dev/kqemu ]; then
+        # allow abuild user to run qemu
+        chmod 0755 /dev/kqemu
+    fi
     if test -n "$VM_SWAP" ; then
        for i in 1 2 3 4 5 6 7 8 9 10 ; do
            test -e "$VM_SWAP" && break