View | Details | Raw Unified | Return to bug 147685
Collapse All | Expand All

(-)/etc/rc.d/fsck (-1 / +10 lines)
Lines 27-33 Link Here
27
		if checkyesno background_fsck; then
27
		if checkyesno background_fsck; then
28
			fsck -F -p
28
			fsck -F -p
29
		else
29
		else
30
			fsck -p
30
			if checkyesno force_fsck; then
31
				echo "Force fsck enabled"
32
				for filesystem in ${force_fsck_list}
33
				do
34
					echo "Force check $filesystem"
35
					fsck -y $filesystem
36
				done
37
			else
38
				fsck -p
39
			fi
31
		fi
40
		fi
32
41
33
		case $? in
42
		case $? in
(-)/etc/defaults/rc.conf (+3 lines)
Lines 87-92 Link Here
87
fsck_y_flags=""		# Additional flags for fsck -y
87
fsck_y_flags=""		# Additional flags for fsck -y
88
background_fsck="YES"	# Attempt to run fsck in the background where possible.
88
background_fsck="YES"	# Attempt to run fsck in the background where possible.
89
background_fsck_delay="60" # Time to wait (seconds) before starting the fsck.
89
background_fsck_delay="60" # Time to wait (seconds) before starting the fsck.
90
force_fsck="NO"		# force check filesystems on startup
91
force_fsck_list=""	# list file systems for force check on startup
92
#force_fsck_list="/ /usr /var"
90
netfs_types="nfs:NFS nfs4:NFS4 smbfs:SMB portalfs:PORTAL nwfs:NWFS" # Net filesystems.
93
netfs_types="nfs:NFS nfs4:NFS4 smbfs:SMB portalfs:PORTAL nwfs:NWFS" # Net filesystems.
91
extra_netfs_types="NO"	# List of network extra filesystem types for delayed
94
extra_netfs_types="NO"	# List of network extra filesystem types for delayed
92
			# mount at startup (or NO).
95
			# mount at startup (or NO).

Return to bug 147685