]> git.ipfire.org Git - thirdparty/dracut.git/commitdiff
fs-lib: install crc32 in no-hostonly
authorMarcos Mello <marcosfrm@gmail.com>
Mon, 16 Apr 2018 10:59:09 +0000 (07:59 -0300)
committerHarald Hoyer <harald@hoyer.xyz>
Tue, 17 Apr 2018 10:02:00 +0000 (12:02 +0200)
It is needed by f2fs.

modules.d/99fs-lib/module-setup.sh

index b69277e249a3ada80d570b93ad57640774381f77..68726614ad87fff7c034f90d7c5ec7a56c9af45c 100755 (executable)
@@ -15,7 +15,7 @@ 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 " e2fsck "
@@ -49,12 +49,12 @@ include_fs_helper_modules() {
 
 # called by dracut
 installkernel() {
-    # xfs and btrfs needs crc32c...
+    # xfs/btrfs/ext4 need crc32c, f2fs needs crc32
     if [[ $hostonly ]]; then
         for_each_host_dev_fs include_fs_helper_modules
         :
     else
-        instmods crc32c
+        instmods crc32c crc32
     fi
 }
 
@@ -81,7 +81,7 @@ install() {
         _helpers="$fscks"
     fi
 
-    if [[ "$_helpers" ==  *e2fsck* ]] && [ -e /etc/e2fsck.conf ]; then
+    if [[ "$_helpers" == *e2fsck* ]] && [ -e /etc/e2fsck.conf ]; then
         inst_simple /etc/e2fsck.conf
     fi