summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDave Reisner <dreisner@archlinux.org>2013-02-11 02:33:32 +0100
committerDave Reisner <dreisner@archlinux.org>2013-02-11 14:38:44 +0100
commit7dbb8b6407f803c87697680b5bea09b4ae2e02d5 (patch)
tree42ef8c1fe0ca3a65a173e4afc7a75539a632f6bc
parent0b052ba0bd6959f9d2b59bcd3b30ff2756ddc3cb (diff)
downloadmkinitcpio-7dbb8b6407f803c87697680b5bea09b4ae2e02d5.tar.gz
mkinitcpio-7dbb8b6407f803c87697680b5bea09b4ae2e02d5.tar.xz
fsck: add fsck config if it exists
Signed-off-by: Dave Reisner <dreisner@archlinux.org>
-rw-r--r--install/fsck11
1 files changed, 8 insertions, 3 deletions
diff --git a/install/fsck b/install/fsck
index dde219a..739a93b 100644
--- a/install/fsck
+++ b/install/fsck
@@ -27,11 +27,16 @@ build() {
done
fi
- if (( added )); then
- add_binary fsck
- else
+ if (( ! added )); then
warning "No fsck helpers found. fsck will not be run on boot."
+ return
+ fi
+
+ add_binary fsck
+ if [[ -e /etc/e2fsck.conf ]]; then
+ add_file /etc/e2fsck.conf
fi
+
}
help() {