Harald Hoyer fe68ba
From ccaf52901fbbdfedbf1764b88ef45be89419a2c8 Mon Sep 17 00:00:00 2001
Harald Hoyer fe68ba
From: Marcos Mello <marcosfrm@gmail.com>
Harald Hoyer fe68ba
Date: Mon, 16 Apr 2018 07:59:09 -0300
Harald Hoyer fe68ba
Subject: [PATCH] fs-lib: install crc32 in no-hostonly
Harald Hoyer fe68ba
Harald Hoyer fe68ba
It is needed by f2fs.
Harald Hoyer fe68ba
---
Harald Hoyer fe68ba
 modules.d/99fs-lib/module-setup.sh | 8 ++++----
Harald Hoyer fe68ba
 1 file changed, 4 insertions(+), 4 deletions(-)
Harald Hoyer fe68ba
Harald Hoyer fe68ba
diff --git a/modules.d/99fs-lib/module-setup.sh b/modules.d/99fs-lib/module-setup.sh
Harald Hoyer fe68ba
index b69277e2..68726614 100755
Harald Hoyer fe68ba
--- a/modules.d/99fs-lib/module-setup.sh
Harald Hoyer fe68ba
+++ b/modules.d/99fs-lib/module-setup.sh
Harald Hoyer fe68ba
@@ -15,7 +15,7 @@ echo_fs_helper() {
Harald Hoyer fe68ba
     local dev=$1 fs=$2
Harald Hoyer fe68ba
     case "$fs" in
Harald Hoyer fe68ba
         xfs)
Harald Hoyer fe68ba
-            echo -n " xfs_db xfs_repair xfs_check xfs_metadump"
Harald Hoyer fe68ba
+            echo -n " xfs_db xfs_repair xfs_check xfs_metadump "
Harald Hoyer fe68ba
             ;;
Harald Hoyer fe68ba
         ext?)
Harald Hoyer fe68ba
             echo -n " e2fsck "
Harald Hoyer fe68ba
@@ -49,12 +49,12 @@ include_fs_helper_modules() {
Harald Hoyer fe68ba
 
Harald Hoyer fe68ba
 # called by dracut
Harald Hoyer fe68ba
 installkernel() {
Harald Hoyer fe68ba
-    # xfs and btrfs needs crc32c...
Harald Hoyer fe68ba
+    # xfs/btrfs/ext4 need crc32c, f2fs needs crc32
Harald Hoyer fe68ba
     if [[ $hostonly ]]; then
Harald Hoyer fe68ba
         for_each_host_dev_fs include_fs_helper_modules
Harald Hoyer fe68ba
         :
Harald Hoyer fe68ba
     else
Harald Hoyer fe68ba
-        instmods crc32c
Harald Hoyer fe68ba
+        instmods crc32c crc32
Harald Hoyer fe68ba
     fi
Harald Hoyer fe68ba
 }
Harald Hoyer fe68ba
 
Harald Hoyer fe68ba
@@ -81,7 +81,7 @@ install() {
Harald Hoyer fe68ba
         _helpers="$fscks"
Harald Hoyer fe68ba
     fi
Harald Hoyer fe68ba
 
Harald Hoyer fe68ba
-    if [[ "$_helpers" ==  *e2fsck* ]] && [ -e /etc/e2fsck.conf ]; then
Harald Hoyer fe68ba
+    if [[ "$_helpers" == *e2fsck* ]] && [ -e /etc/e2fsck.conf ]; then
Harald Hoyer fe68ba
         inst_simple /etc/e2fsck.conf
Harald Hoyer fe68ba
     fi
Harald Hoyer fe68ba
 
Harald Hoyer fe68ba