summaryrefslogtreecommitdiff
path: root/sh
diff options
context:
space:
mode:
authorRoy Marples <roy@marples.name>2008-08-19 15:27:15 +0000
committerRoy Marples <roy@marples.name>2008-08-19 15:27:15 +0000
commita3c87066181282717ac0db2da904b7d5e127ff72 (patch)
tree7dce6110d0b12599382bce4fd351812294170f3f /sh
parent1f227d62bf079e96771ee49ba499281da326f4e9 (diff)
downloadopenrc-a3c87066181282717ac0db2da904b7d5e127ff72.tar.gz
openrc-a3c87066181282717ac0db2da904b7d5e127ff72.tar.bz2
openrc-a3c87066181282717ac0db2da904b7d5e127ff72.tar.xz
Allow OpenVZ to mount /sys and device managers, #102
Diffstat (limited to 'sh')
-rw-r--r--sh/init.sh.Linux.in9
1 files changed, 6 insertions, 3 deletions
diff --git a/sh/init.sh.Linux.in b/sh/init.sh.Linux.in
index 5aa5031..63b263a 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"