Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 371141 | Differences between
and this patch

Collapse All | Expand All

(-)a/init.d/localmount.in (-7 / +1 lines)
Lines 37-52 stop() Link Here
37
	local x= no_umounts_r="/|/dev|/dev/.*|${RC_SVCDIR}"
37
	local x= no_umounts_r="/|/dev|/dev/.*|${RC_SVCDIR}"
38
	no_umounts_r="${no_umounts_r}|/bin|/sbin|/lib|/libexec"
38
	no_umounts_r="${no_umounts_r}|/bin|/sbin|/lib|/libexec"
39
	# RC_NO_UMOUNTS is an env var that can be set by plugins
39
	# RC_NO_UMOUNTS is an env var that can be set by plugins
40
	local OIFS=$IFS SIFS=${IFS-y}
40
	local IFS=$IFS:
41
	IFS=$IFS:
42
	for x in $no_umounts $RC_NO_UMOUNTS; do
41
	for x in $no_umounts $RC_NO_UMOUNTS; do
43
		no_umounts_r="$no_umounts_r|$x"
42
		no_umounts_r="$no_umounts_r|$x"
44
	done
43
	done
45
	if [ "$SIFS" = y ]; then
46
		IFS=$OIFS
47
	else
48
		unset IFS
49
	fi
50
44
51
	if [ "$RC_UNAME" = Linux ]; then
45
	if [ "$RC_UNAME" = Linux ]; then
52
		no_umounts_r="$no_umounts_r|/proc|/proc/.*|/run|/sys|/sys/.*"
46
		no_umounts_r="$no_umounts_r|/proc|/proc/.*|/run|/sys|/sys/.*"
(-)a/init.d/mount-ro.in (-8 / +1 lines)
Lines 22-37 start() Link Here
22
	local m="/dev|/dev/.*|/proc|/proc.*|/sys|/sys/.*|${RC_SVCDIR}" x= fs=
22
	local m="/dev|/dev/.*|/proc|/proc.*|/sys|/sys/.*|${RC_SVCDIR}" x= fs=
23
	m="$m|/bin|/sbin|/lib|/libexec"
23
	m="$m|/bin|/sbin|/lib|/libexec"
24
	# RC_NO_UMOUNTS is an env var that can be set by plugins
24
	# RC_NO_UMOUNTS is an env var that can be set by plugins
25
	local OIFS=$IFS SIFS=${IFS-y} IFS=$IFS
25
	local IFS=$IFS:
26
	IFS=$IFS:
27
	for x in $no_umounts $RC_NO_UMOUNTS; do
26
	for x in $no_umounts $RC_NO_UMOUNTS; do
28
		m="$m|$x"
27
		m="$m|$x"
29
	done
28
	done
30
	if [ "$SIFS" = y ]; then
31
		IFS=$OIFS
32
	else
33
		unset IFS
34
	fi
35
	m="^($m)$"
29
	m="^($m)$"
36
	fs=
30
	fs=
37
	for x in $net_fs_list; do
31
	for x in $net_fs_list; do
38
- 

Return to bug 371141