init.d/mount-ro: do not remount /usr read only if it is premounted
X-Gentoo-Bug: 573760 X-Gentoo-Bug: https://bugs.gentoo.org/show_bug.cgi?id=573760
This commit is contained in:
parent
20b60ea904
commit
bf539f2196
@ -34,6 +34,9 @@ start()
|
|||||||
|
|
||||||
local m="/dev|/dev/.*|/proc|/proc.*|/sys|/sys/.*|/run|${rc_svcdir}" x= fs=
|
local m="/dev|/dev/.*|/proc|/proc.*|/sys|/sys/.*|/run|${rc_svcdir}" x= fs=
|
||||||
m="$m|/bin|/sbin|/lib(32|64)?|/libexec"
|
m="$m|/bin|/sbin|/lib(32|64)?|/libexec"
|
||||||
|
if [ -e "$rc_svcdir"/usr_premounted ]; then
|
||||||
|
m="$m|/usr"
|
||||||
|
fi
|
||||||
# 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 IFS="$IFS:"
|
local IFS="$IFS:"
|
||||||
for x in $no_umounts $RC_NO_UMOUNTS; do
|
for x in $no_umounts $RC_NO_UMOUNTS; do
|
||||||
|
Loading…
Reference in New Issue
Block a user