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
|
# We never unmount / or /dev or $RC_SVCDIR
|
||||||
local x= no_umounts_r="/|/dev|/dev/.*|${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
|
# RC_NO_UMOUNTS is an env var that can be set by plugins
|
||||||
OIFS=${IFS} SIFS=${IFS-y}
|
OIFS=${IFS} SIFS=${IFS-y}
|
||||||
IFS=$IFS:
|
IFS=$IFS:
|
||||||
|
@ -20,6 +20,7 @@ start()
|
|||||||
. "${RC_LIBDIR}"/sh/rc-mount.sh
|
. "${RC_LIBDIR}"/sh/rc-mount.sh
|
||||||
eindent
|
eindent
|
||||||
local m="/dev|/dev/.*|/proc|/proc.*|/sys|/sys/.*|${RC_SVCDIR}" x= fs=
|
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
|
# RC_NO_UMOUNTS is an env var that can be set by plugins
|
||||||
local OIFS=$IFS SIFS=${IFS-y} IFS=$IFS
|
local OIFS=$IFS SIFS=${IFS-y} IFS=$IFS
|
||||||
IFS=$IFS:
|
IFS=$IFS:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user