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

Collapse All | Expand All

(-)checkfs.orig (-11 / +23 lines)
Lines 20-38 Link Here
20
		eend $? "Failed to setup the LVM"
20
		eend $? "Failed to setup the LVM"
21
	fi
21
	fi
22
22
23
	ebegin "Checking all filesystems"
23
	if [ -f /fastboot ]
24
	fsck -R -A -a
25
	if [ "$?" -eq 0 ]
26
	then
24
	then
27
		eend 0
25
		rm -f /fastboot
28
	elif [ "$?" -eq 1 ]
29
	then
30
		ewend 1 "Filesystem errors corrected."
31
		#everything should be ok, so return a pass
32
		return 0
33
	else
26
	else
34
		eend 2 "Fsck could not correct all errors, manual repair needed"
27
		ebegin "Checking all filesystems"
35
		/sbin/sulogin ${CONSOLE}
28
		if [ -f /forcefsck ]
29
		then
30
			ewarn "A full fsck has been forced"
31
			fsck -C -R -A -a -f
32
			rm /forcefsck
33
		else
34
			fsck -R -A -a
35
		fi
36
		if [ "$?" -eq 0 ]
37
		then
38
			eend 0
39
		elif [ "$?" -eq 1 ]
40
		then
41
			ewend 1 "Filesystem errors corrected."
42
			#everything should be ok, so return a pass
43
			return 0
44
		else
45
			eend 2 "Fsck could not correct all errors, manual repair needed"
46
			/sbin/sulogin ${CONSOLE}
47
		fi
36
	fi
48
	fi
37
}
49
}
38
50

Return to bug 5570