Skip to content

Commit

Permalink
- fix mounting of /sys inside of VM's when /sys directory got not pre…
Browse files Browse the repository at this point in the history
…installed
  • Loading branch information
adrianschroeter committed Feb 20, 2014
1 parent 3a76162 commit aa6a2f0
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion build
Original file line number Diff line number Diff line change
Expand Up @@ -778,7 +778,10 @@ detect_vm_2nd_stage()
fi
RUNNING_IN_VM=true
test -e /proc/version || mount -orw -n -tproc none /proc
test -e /sys/block || mount -orw -n -tsysfs sysfs /sys
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
Expand Down

0 comments on commit aa6a2f0

Please sign in to comment.