aboutsummaryrefslogtreecommitdiff
path: root/init.d
diff options
context:
space:
mode:
authorWilliam Hubbs <w.d.hubbs@gmail.com>2016-11-03 12:29:21 -0500
committerWilliam Hubbs <w.d.hubbs@gmail.com>2016-11-03 12:29:21 -0500
commitbf539f2196290864ce5c5fd0d679b74ee016e2da (patch)
tree0ef5297bccbf4b4db0360e4c4a8b771c65b19b69 /init.d
parent20b60ea904612669dfb744beffcd8e7e447f69ef (diff)
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
Diffstat (limited to 'init.d')
-rw-r--r--init.d/mount-ro.in3
1 files changed, 3 insertions, 0 deletions
diff --git a/init.d/mount-ro.in b/init.d/mount-ro.in
index 589f1a2c..3553b7a3 100644
--- a/init.d/mount-ro.in
+++ b/init.d/mount-ro.in
@@ -34,6 +34,9 @@ start()
local m="/dev|/dev/.*|/proc|/proc.*|/sys|/sys/.*|/run|${rc_svcdir}" x= fs=
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
local IFS="$IFS:"
for x in $no_umounts $RC_NO_UMOUNTS; do