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

Collapse All | Expand All

(-)halt.sh (-3 / +5 lines)
Lines 106-111 Link Here
106
		continue
106
		continue
107
	fi
107
	fi
108
108
109
	# If we're using the mount (probably /usr) then don't unmount us
110
	if [[ " $(fuser -m "${x}" 2>/dev/null) " == *" $$ "* ]] ; then
111
		continue
112
	fi
113
109
	if ! umount "${x}" &>/dev/null; then
114
	if ! umount "${x}" &>/dev/null; then
110
		# Kill processes still using this mount
115
		# Kill processes still using this mount
111
		/bin/fuser -s -k -9 -m "${x}"
116
		/bin/fuser -s -k -9 -m "${x}"
Lines 156-164 Link Here
156
161
157
	for x in $(awk '{print $2}' /proc/mounts | sort -ur) ; do
162
	for x in $(awk '{print $2}' /proc/mounts | sort -ur) ; do
158
		x=${x//\\040/ }
163
		x=${x//\\040/ }
159
		if [[ -n $(echo "${x}" | egrep "${RC_NO_UMOUNTS}") ]] ; then
160
			continue
161
		fi
162
		if [[ ${cmd} == "u" ]]; then
164
		if [[ ${cmd} == "u" ]]; then
163
			umount -n -r "${x}"
165
			umount -n -r "${x}"
164
		else
166
		else

Return to bug 156766