diff options
author | joe9 <joe9mail@gmail.com> | 2015-10-24 18:55:59 -0400 |
---|---|---|
committer | William Hubbs <w.d.hubbs@gmail.com> | 2016-01-13 10:52:22 -0600 |
commit | 9473ac514cb72663d5c3bac8b5473cced4a20bf7 (patch) | |
tree | 8019d58fb499ab7a9eadba7790343e30151ab81d | |
parent | bf2f40828ee26d3ba9185f29db596ee5d7b9cf61 (diff) |
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
-rw-r--r-- | conf.d/fsck | 6 | ||||
-rw-r--r-- | init.d/fsck.in | 2 |
2 files changed, 7 insertions, 1 deletions
diff --git a/conf.d/fsck b/conf.d/fsck index 16aa5752..30131ea1 100644 --- a/conf.d/fsck +++ b/conf.d/fsck @@ -32,3 +32,9 @@ fsck_on_battery="YES" # This is useful when periodic filesystem checks are causing undesirable # delays at startup, but such delays at shutdown are acceptable. 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" diff --git a/init.d/fsck.in b/init.d/fsck.in index 5e5b3e99..005e87fc 100644 --- a/init.d/fsck.in +++ b/init.d/fsck.in @@ -20,7 +20,7 @@ depend() } _abort() { - rc-abort + yesno ${fsck_abort_on_errors:-yes} && rc-abort return 1 } |