18971c
From 4b07c26d33c5b2ab1e4d2e98c88e787bdf032917 Mon Sep 17 00:00:00 2001
18971c
From: Harald Hoyer <harald@redhat.com>
18971c
Date: Fri, 4 Apr 2014 11:33:02 +0200
18971c
Subject: [PATCH] fs-lib: always install fsck.$fs, if present
18971c
18971c
---
18971c
 modules.d/99fs-lib/module-setup.sh | 10 +++++-----
18971c
 1 file changed, 5 insertions(+), 5 deletions(-)
18971c
18971c
diff --git a/modules.d/99fs-lib/module-setup.sh b/modules.d/99fs-lib/module-setup.sh
18971c
index c9c88b7d..249aa84a 100755
18971c
--- a/modules.d/99fs-lib/module-setup.sh
18971c
+++ b/modules.d/99fs-lib/module-setup.sh
18971c
@@ -15,10 +15,10 @@ echo_fs_helper() {
18971c
     local dev=$1 fs=$2
18971c
     case "$fs" in
18971c
         xfs)
18971c
-            echo -n " xfs_db xfs_repair xfs_check xfs_metadump "
18971c
+            echo -n " xfs_db xfs_repair xfs_check xfs_metadump"
18971c
             ;;
18971c
         ext?)
18971c
-            echo -n " fsck.$fs e2fsck "
18971c
+            echo -n " e2fsck "
18971c
             ;;
18971c
         jfs)
18971c
             echo -n " jfs_fsck "
18971c
@@ -29,10 +29,10 @@ echo_fs_helper() {
18971c
         btrfs)
18971c
             echo -n " btrfsck "
18971c
             ;;
18971c
-        *)
18971c
-            [[ -x fsck.$fs ]] && echo -n " fsck.$fs "
18971c
-            ;;
18971c
     esac
18971c
+
18971c
+    echo -n " fsck.$fs "
18971c
+    return 0
18971c
 }
18971c
 
18971c
 include_fs_helper_modules() {