Skip to content

Commit

Permalink
- fix mounting of /sys in XEN instances
Browse files Browse the repository at this point in the history
  • Loading branch information
adrianschroeter committed Feb 26, 2014
1 parent b54de96 commit ad9db86
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions build
Original file line number Diff line number Diff line change
Expand Up @@ -778,14 +778,15 @@ detect_vm_2nd_stage()
fi
RUNNING_IN_VM=true
test -e /proc/version || mount -orw -n -tproc none /proc
if ! test -e /sys/block; then
mkdir -p /sys
mount -orw -n -tsysfs sysfs /sys
fi
if test "$VM_TYPE" != 'lxc'; then
mount -n ${VMDISK_MOUNT_OPTIONS},remount,rw /
fi
umount /run >/dev/null 2>&1
# mount /sys
if ! test -e /sys/block; then
mkdir -p /sys
mount -orw -n -tsysfs sysfs /sys
fi
# 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
Expand Down

0 comments on commit ad9db86

Please sign in to comment.