]> 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>
Fri, 4 Apr 2014 09:34:10 +0000 (11:34 +0200)
modules.d/99fs-lib/module-setup.sh

index 7979babd619a62f72b6dfdfad3f367c25d311415..b6f85b15b4e39d6e32c2c722680c1f9fef8ac34e 100755 (executable)
@@ -17,10 +17,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 "
@@ -31,10 +31,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() {