aboutsummaryrefslogtreecommitdiff
path: root/etc
diff options
context:
space:
mode:
authorDavid Bright <dab@FreeBSD.org>2018-03-15 18:29:56 +0000
committerDavid Bright <dab@FreeBSD.org>2018-03-15 18:29:56 +0000
commitcc732b9da5e31ef4bb3741827f7ae570af8eb596 (patch)
tree9e8e8bc2e2e1825bacf3bbc6994c074a4c1892dc /etc
parentb65794ad848ab0ac1563e57f2b6206daca38d775 (diff)
downloadsrc-cc732b9da5e31ef4bb3741827f7ae570af8eb596.tar.gz
src-cc732b9da5e31ef4bb3741827f7ae570af8eb596.zip
Modify rc.d/fsck to handle new status from fsck/fsck_ffs
r328013 introduced a new error code from fsck_ffs that indicates that it could not completely fix the file system; this happens when it prints the message PLEASE RERUN FSCK. However, this status can happen when fsck is run in "preen" mode and the rc.d/fsck script does not handle that error code. Modify rc.d/fsck so that if "fsck -p" ("preen") returns the new status code (16) it will run "fsck -y", as it currently does for a status code of 8 (the "standard error exit"). Reported by: markj Reviewed by: mckusick, markj, ian, rgrimes MFC after: 3 days Sponsored by: Dell EMC Differential Revision: https://reviews.freebsd.org/D14679
Notes
Notes: svn path=/head/; revision=331015
Diffstat (limited to 'etc')
-rwxr-xr-xetc/rc.d/fsck2
1 files changed, 1 insertions, 1 deletions
diff --git a/etc/rc.d/fsck b/etc/rc.d/fsck
index bd3122a20110..747d357c4412 100755
--- a/etc/rc.d/fsck
+++ b/etc/rc.d/fsck
@@ -57,7 +57,7 @@ fsck_start()
echo "Reboot failed; help!"
stop_boot
;;
- 8)
+ 8|16)
if checkyesno fsck_y_enable; then
echo "File system preen failed, trying fsck -y ${fsck_y_flags}"
fsck -y ${fsck_y_flags}