diff options
author | Dave Reisner <dreisner@archlinux.org> | 2013-02-11 02:33:32 +0100 |
---|---|---|
committer | Dave Reisner <dreisner@archlinux.org> | 2013-02-11 14:38:44 +0100 |
commit | 7dbb8b6407f803c87697680b5bea09b4ae2e02d5 (patch) | |
tree | 42ef8c1fe0ca3a65a173e4afc7a75539a632f6bc /install | |
parent | 0b052ba0bd6959f9d2b59bcd3b30ff2756ddc3cb (diff) | |
download | mkinitcpio-7dbb8b6407f803c87697680b5bea09b4ae2e02d5.tar.gz mkinitcpio-7dbb8b6407f803c87697680b5bea09b4ae2e02d5.tar.xz |
fsck: add fsck config if it exists
Signed-off-by: Dave Reisner <dreisner@archlinux.org>
Diffstat (limited to 'install')
-rw-r--r-- | install/fsck | 11 |
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() { |