aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--init.d/localmount.in2
-rw-r--r--init.d/mount-ro.in1
2 files changed, 2 insertions, 1 deletions
diff --git a/init.d/localmount.in b/init.d/localmount.in
index c9c39db4..07a95e88 100644
--- a/init.d/localmount.in
+++ b/init.d/localmount.in
@@ -31,7 +31,7 @@ stop()
{
# We never unmount / or /dev or $RC_SVCDIR
local x= no_umounts_r="/|/dev|/dev/.*|${RC_SVCDIR}"
-
+ no_umounts_r="${no_umounts_r}|/bin|/sbin|/lib|/libexec"
# RC_NO_UMOUNTS is an env var that can be set by plugins
OIFS=${IFS} SIFS=${IFS-y}
IFS=$IFS:
diff --git a/init.d/mount-ro.in b/init.d/mount-ro.in
index 2fb83c0a..2e418724 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: