Don't unmount /bin,/sbin,/lib,/libexec in the very silly cases where they are not on /
This commit is contained in:
parent
ace0b9653b
commit
744a8bbb4a
@ -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:
|
||||
|
@ -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:
|
||||
|
Loading…
Reference in New Issue
Block a user