commit: bf539f2196290864ce5c5fd0d679b74ee016e2da Author: William Hubbs <w.d.hubbs <AT> gmail <DOT> com> AuthorDate: Thu Nov 3 17:29:21 2016 +0000 Commit: William Hubbs <williamh <AT> gentoo <DOT> org> CommitDate: Thu Nov 3 17:29:21 2016 +0000 URL: https://gitweb.gentoo.org/proj/openrc.git/commit/?id=bf539f21
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 init.d/mount-ro.in | 3 +++ 1 file changed, 3 insertions(+) diff --git a/init.d/mount-ro.in b/init.d/mount-ro.in index 589f1a2..3553b7a 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