]> git.ipfire.org Git - thirdparty/dracut.git/commitdiff
fs-lib: always install fsck.$fs, if present
authorHarald Hoyer <harald@redhat.com>
Fri, 4 Apr 2014 09:33:02 +0000 (11:33 +0200)
committerHarald Hoyer <harald@redhat.com>
Tue, 29 Jul 2014 09:52:07 +0000 (11:52 +0200)
modules.d/99fs-lib/module-setup.sh

index c9c88b7d61d4300d2bb82ddd33c82dc97bd7bdca..249aa84af9d516f75c2838d838a07e7edc7dd989 100755 (executable)
@@ -15,10 +15,10 @@ echo_fs_helper() {
     local dev=$1 fs=$2
     case "$fs" in
         xfs)
-            echo -n " xfs_db xfs_repair xfs_check xfs_metadump "
+            echo -n " xfs_db xfs_repair xfs_check xfs_metadump"
             ;;
         ext?)
-            echo -n " fsck.$fs e2fsck "
+            echo -n " e2fsck "
             ;;
         jfs)
             echo -n " jfs_fsck "
@@ -29,10 +29,10 @@ echo_fs_helper() {
         btrfs)
             echo -n " btrfsck "
             ;;
-        *)
-            [[ -x fsck.$fs ]] && echo -n " fsck.$fs "
-            ;;
     esac
+
+    echo -n " fsck.$fs "
+    return 0
 }
 
 include_fs_helper_modules() {