diff options
author | Roy Marples <roy@marples.name> | 2008-08-19 15:27:15 +0000 |
---|---|---|
committer | Roy Marples <roy@marples.name> | 2008-08-19 15:27:15 +0000 |
commit | a3c87066181282717ac0db2da904b7d5e127ff72 (patch) | |
tree | 7dce6110d0b12599382bce4fd351812294170f3f /sh | |
parent | 1f227d62bf079e96771ee49ba499281da326f4e9 (diff) |
Allow OpenVZ to mount /sys and device managers, #102
Diffstat (limited to 'sh')
-rw-r--r-- | sh/init.sh.Linux.in | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/sh/init.sh.Linux.in b/sh/init.sh.Linux.in index 5aa5031e..63b263ac 100644 --- a/sh/init.sh.Linux.in +++ b/sh/init.sh.Linux.in @@ -108,8 +108,7 @@ if [ -r /sbin/livecd-functions.sh ]; then fi if [ "${RC_UNAME}" != "GNU/kFreeBSD" \ - -a "${RC_SYS}" != "VSERVER" \ - -a "${RC_SYS}" != "OPENVZ" ] + -a "${RC_SYS}" != "VSERVER" ]; then if grep -Eq "[[:space:]]+sysfs$" /proc/filesystems; then if [ -d /sys ]; then @@ -126,10 +125,14 @@ then 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 if [ "${rc_devices}" = "static" \ -o "${RC_SYS}" = "VSERVER" \ - -o "${RC_SYS}" = "OPENVZ" \ -o "${RC_UNAME}" = "GNU/kFreeBSD" ] then ebegin "Using existing device nodes in /dev" |