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

Collapse All | Expand All

(-)baselayout-1.12.5/init.d/halt.sh (+14 lines)
Lines 204-209 if [[ ${mount_worked} -eq 1 ]]; then Link Here
204
	/sbin/sulogin -t 10 /dev/console
204
	/sbin/sulogin -t 10 /dev/console
205
fi
205
fi
206
206
207
# Conditionally run filesystem checks. Note that /forcefsck skips this and
208
# causes the forced checks to run upon boot. This is because doing forced
209
# checks then removing /forcefsck is not practical at this point.
210
conf=$(add_suffix /etc/conf.d/checkfs)
211
if [[ -e ${conf} ]] ; then
212
	(
213
		. ${conf}
214
		if [[ ${FSCK_SHUTDOWN} == "yes" && ! -f /forcefsck ]]; then
215
			. /etc/init.d/checkfs
216
			start
217
		fi
218
	)
219
fi
220
207
# Inform if there is a forced or skipped fsck
221
# Inform if there is a forced or skipped fsck
208
if [[ -f /fastboot ]]; then
222
if [[ -f /fastboot ]]; then
209
	echo
223
	echo
(-)baselayout-1.12.5/etc/conf.d/checkfs (+9 lines)
Line 0 Link Here
1
# FSCK_SHUTDOWN causes checkfs to trigger during shutdown as well as startup.
2
# The end result of this is that if any periodic non-root filesystem checks are
3
# scheduled, under normal circumstances the actual check will happen during
4
# shutdown rather than at next boot.
5
# This is useful when periodic filesystem checks are causing undesirable
6
# delays at startup, but such delays at shutdown are acceptable.
7
8
FSCK_SHUTDOWN="no"
9

Return to bug 152983