1 |
commit: 3c5244fb6acaed01cd186c356e2730f12c77ca99 |
2 |
Author: William Hubbs <w.d.hubbs <AT> gmail <DOT> com> |
3 |
AuthorDate: Thu Nov 3 17:29:21 2016 +0000 |
4 |
Commit: William Hubbs <williamh <AT> gentoo <DOT> org> |
5 |
CommitDate: Thu Nov 3 18:20:48 2016 +0000 |
6 |
URL: https://gitweb.gentoo.org/proj/openrc.git/commit/?id=3c5244fb |
7 |
|
8 |
init.d/mount-ro: do not remount /usr read only if it is premounted |
9 |
|
10 |
X-Gentoo-Bug: 573760 |
11 |
X-Gentoo-Bug: https://bugs.gentoo.org/show_bug.cgi?id=573760 |
12 |
|
13 |
init.d/mount-ro.in | 3 +++ |
14 |
1 file changed, 3 insertions(+) |
15 |
|
16 |
diff --git a/init.d/mount-ro.in b/init.d/mount-ro.in |
17 |
index 589f1a2..3553b7a 100644 |
18 |
--- a/init.d/mount-ro.in |
19 |
+++ b/init.d/mount-ro.in |
20 |
@@ -34,6 +34,9 @@ start() |
21 |
|
22 |
local m="/dev|/dev/.*|/proc|/proc.*|/sys|/sys/.*|/run|${rc_svcdir}" x= fs= |
23 |
m="$m|/bin|/sbin|/lib(32|64)?|/libexec" |
24 |
+ if [ -e "$rc_svcdir"/usr_premounted ]; then |
25 |
+ m="$m|/usr" |
26 |
+ fi |
27 |
# RC_NO_UMOUNTS is an env var that can be set by plugins |
28 |
local IFS="$IFS:" |
29 |
for x in $no_umounts $RC_NO_UMOUNTS; do |