- umount /run in 2nd stage, our initrd mounts tmpfs on it
authorMichael Schroeder <mls@suse.de>
Tue, 3 Jul 2012 13:36:00 +0000 (15:36 +0200)
committerMichael Schroeder <mls@suse.de>
Tue, 3 Jul 2012 13:36:00 +0000 (15:36 +0200)
build

diff --git a/build b/build
index 83eac38..8b6cb96 100755 (executable)
--- a/build
+++ b/build
@@ -627,10 +627,11 @@ detect_vm_2nd_stage()
        exec perl -e 'syscall(136, '$PERSONALITY') == -1 && warn("personality: $!\n");exec "/.build/build" || die("/.build/build: $!\n")'
     fi
     RUNNING_IN_VM=true
-    mount -orw -n -tproc none /proc
+    test -e /proc/version || mount -orw -n -tproc none /proc
     if test "$VM_TYPE" != 'lxc'; then
        mount -n ${VMDISK_MOUNT_OPTIONS},remount,rw /
     fi
+    umount /run >/dev/null 2>&1
 # qemu inside of xen does not work, check again with kvm later before enabling this
 #    if [ -e /dev/kqemu ]; then
 #        # allow abuild user to run qemu