Skip to content

Commit 109a0bf

Browse files
committed
init.d/localmount: don't unmount /etc, our init scripts live there
we might want to look into /usr as well later, though for now we have the premounted flag. Closes: #996
1 parent fde59b3 commit 109a0bf

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

init.d/localmount.in

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ stop()
6161
# Bug 381783
6262
local rc_svcdir=$(printf '%s\n' "$RC_SVCDIR" | sed 's:/lib\(32\|64\)\?/:/lib(32|64)?/:g')
6363

64-
local x= no_umounts_r="/|/dev|/dev/.*|${rc_svcdir}"
64+
local x= no_umounts_r="/|/dev|/dev/.*|/etc|/etc/.*|${rc_svcdir}"
6565
no_umounts_r="${no_umounts_r}|/bin|/sbin|/lib(32|64)?|/libexec"
6666
# RC_NO_UMOUNTS is an env var that can be set by plugins
6767
local IFS="$IFS:"

0 commit comments

Comments
 (0)