Allow OpenVZ to mount /sys and device managers, #102
This commit is contained in:
parent
1f227d62bf
commit
a3c8706618
@ -108,8 +108,7 @@ if [ -r /sbin/livecd-functions.sh ]; then
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
if [ "${RC_UNAME}" != "GNU/kFreeBSD" \
|
if [ "${RC_UNAME}" != "GNU/kFreeBSD" \
|
||||||
-a "${RC_SYS}" != "VSERVER" \
|
-a "${RC_SYS}" != "VSERVER" ];
|
||||||
-a "${RC_SYS}" != "OPENVZ" ]
|
|
||||||
then
|
then
|
||||||
if grep -Eq "[[:space:]]+sysfs$" /proc/filesystems; then
|
if grep -Eq "[[:space:]]+sysfs$" /proc/filesystems; then
|
||||||
if [ -d /sys ]; then
|
if [ -d /sys ]; then
|
||||||
@ -126,10 +125,14 @@ then
|
|||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
# Default OpenVZ to static devices
|
||||||
|
if [ "${RC_SYS}" = "OPENVZ" ]; then
|
||||||
|
rc_devices=${rc_devices:-static}
|
||||||
|
fi
|
||||||
|
|
||||||
# Try to figure out how the user wants /dev handled
|
# Try to figure out how the user wants /dev handled
|
||||||
if [ "${rc_devices}" = "static" \
|
if [ "${rc_devices}" = "static" \
|
||||||
-o "${RC_SYS}" = "VSERVER" \
|
-o "${RC_SYS}" = "VSERVER" \
|
||||||
-o "${RC_SYS}" = "OPENVZ" \
|
|
||||||
-o "${RC_UNAME}" = "GNU/kFreeBSD" ]
|
-o "${RC_UNAME}" = "GNU/kFreeBSD" ]
|
||||||
then
|
then
|
||||||
ebegin "Using existing device nodes in /dev"
|
ebegin "Using existing device nodes in /dev"
|
||||||
|
Loading…
Reference in New Issue
Block a user