Blame SOURCES/0158-fs-lib-always-install-fsck.-fs-if-present.patch

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