allow the user to decide whether fsck aborts for errors

X-Gentoo-Bug: 564008
X-Gentoo-Bug-URL: https://bugs.gentoo.org/show_bug.cgi?id=564008
This commit is contained in:
joe9 2015-10-24 18:55:59 -04:00 committed by William Hubbs
parent bf2f40828e
commit 9473ac514c
2 changed files with 7 additions and 1 deletions

View File

@ -32,3 +32,9 @@ fsck_on_battery="YES"
# This is useful when periodic filesystem checks are causing undesirable # This is useful when periodic filesystem checks are causing undesirable
# delays at startup, but such delays at shutdown are acceptable. # delays at startup, but such delays at shutdown are acceptable.
fsck_shutdown="NO" fsck_shutdown="NO"
# fsck_abort_on_errors can be set to no to cause fsck to not abort on
# errors.
# This is useful when periodic filesystem checks are causing undesirable
# aborts.
fsck_abort_on_errors="YES"

View File

@ -20,7 +20,7 @@ depend()
} }
_abort() { _abort() {
rc-abort yesno ${fsck_abort_on_errors:-yes} && rc-abort
return 1 return 1
} }