13 desc="Run file system checks"
14 start_cmd="fsck_start"
19 if [ "$autoboot" = no ]; then
20 echo "Fast boot: skipping disk checks."
21 elif [ ! -r /etc/fstab ]; then
22 echo "Warning! No /etc/fstab: skipping disk checks."
23 elif [ "$autoboot" = yes ]; then
24 # During fsck ignore SIGQUIT
27 check_startmsgs && echo "Starting file system checks:"
28 # Background fsck can only be run with -p
29 if checkyesno background_fsck; then
36 if [ ${err} -eq 3 ]; then
37 echo "Warning! Some of the devices might not be" \
40 check_startmsgs && echo "Restarting file system checks:"
41 # Background fsck can only be run with -p
42 if checkyesno background_fsck; then
59 echo "Reboot failed; help!"
63 if checkyesno fsck_y_enable; then
64 echo "File system preen failed, trying fsck -y ${fsck_y_flags}"
65 fsck -y ${fsck_y_flags}
70 echo "Automatic file system check failed; help!"
75 echo "Automatic file system check failed; help!"
80 echo "Boot interrupted."
87 echo "Unknown error ${err}; help!"