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

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