dracut/0018.patch
2018-05-15 13:42:32 +02:00

49 lines
1.4 KiB
Diff

From ccaf52901fbbdfedbf1764b88ef45be89419a2c8 Mon Sep 17 00:00:00 2001
From: Marcos Mello <marcosfrm@gmail.com>
Date: Mon, 16 Apr 2018 07:59:09 -0300
Subject: [PATCH] fs-lib: install crc32 in no-hostonly
It is needed by f2fs.
---
modules.d/99fs-lib/module-setup.sh | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/modules.d/99fs-lib/module-setup.sh b/modules.d/99fs-lib/module-setup.sh
index b69277e2..68726614 100755
--- a/modules.d/99fs-lib/module-setup.sh
+++ b/modules.d/99fs-lib/module-setup.sh
@@ -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