Gentoo Archives: gentoo-commits

From: William Hubbs <williamh@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] proj/openrc:master commit in: init.d/
Date: Thu, 03 Nov 2016 17:36:49
Message-Id: 1478194161.bf539f2196290864ce5c5fd0d679b74ee016e2da.williamh@OpenRC
1 commit: bf539f2196290864ce5c5fd0d679b74ee016e2da
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 17:29:21 2016 +0000
6 URL: https://gitweb.gentoo.org/proj/openrc.git/commit/?id=bf539f21
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