summaryrefslogtreecommitdiff
path: root/init.d/mount-ro.in
diff options
context:
space:
mode:
authorRoy Marples <roy@marples.name>2009-04-16 23:34:38 +0000
committerRoy Marples <roy@marples.name>2009-04-16 23:34:38 +0000
commit744a8bbb4a2e2d58a2118f7796528b593905fc50 (patch)
tree625597819eae418a7d4f3e62ec885decd622deb6 /init.d/mount-ro.in
parentace0b9653b44582fdf24381acd23bc23ccbb3f93 (diff)
downloadopenrc-744a8bbb4a2e2d58a2118f7796528b593905fc50.tar.gz
openrc-744a8bbb4a2e2d58a2118f7796528b593905fc50.tar.bz2
openrc-744a8bbb4a2e2d58a2118f7796528b593905fc50.tar.xz
Don't unmount /bin,/sbin,/lib,/libexec in the very silly cases where they are not on /
Diffstat (limited to 'init.d/mount-ro.in')
-rw-r--r--init.d/mount-ro.in1
1 files changed, 1 insertions, 0 deletions
diff --git a/init.d/mount-ro.in b/init.d/mount-ro.in
index 2fb83c0..2e41872 100644
--- a/init.d/mount-ro.in
+++ b/init.d/mount-ro.in
@@ -20,6 +20,7 @@ start()
. "${RC_LIBDIR}"/sh/rc-mount.sh
eindent
local m="/dev|/dev/.*|/proc|/proc.*|/sys|/sys/.*|${RC_SVCDIR}" x= fs=
+ m="${m}|/bin|/sbin|/lib|/libexec"
# RC_NO_UMOUNTS is an env var that can be set by plugins
local OIFS=$IFS SIFS=${IFS-y} IFS=$IFS
IFS=$IFS: