From 9473ac514cb72663d5c3bac8b5473cced4a20bf7 Mon Sep 17 00:00:00 2001 From: joe9 Date: Sat, 24 Oct 2015 18:55:59 -0400 Subject: 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 --- conf.d/fsck | 6 ++++++ init.d/fsck.in | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) 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 } -- cgit v1.2.3