From: Colin Guthrie Date: Sun, 13 Jan 2013 14:06:58 +0000 (+0000) Subject: Include crc32c module for xfs. X-Git-Tag: 025~2 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=3de6001e1e98fc5cbdce0cac44c69371052b707b;p=thirdparty%2Fdracut.git Include crc32c module for xfs. Just like btrfs, xfs now requires CRC module that cannot be resolved via normal module resolving. Move this hack into fs-lib and remove it from btrfs module. https://bugs.mageia.org/show_bug.cgi?id=8676 --- diff --git a/modules.d/90btrfs/module-setup.sh b/modules.d/90btrfs/module-setup.sh index d2e559fd8..526d9dd43 100755 --- a/modules.d/90btrfs/module-setup.sh +++ b/modules.d/90btrfs/module-setup.sh @@ -26,7 +26,7 @@ depends() { } installkernel() { - instmods btrfs crc32c + instmods btrfs } install() { diff --git a/modules.d/99fs-lib/module-setup.sh b/modules.d/99fs-lib/module-setup.sh index 344dcdf04..637737ee8 100755 --- a/modules.d/99fs-lib/module-setup.sh +++ b/modules.d/99fs-lib/module-setup.sh @@ -35,6 +35,24 @@ echo_fs_helper() { esac } +include_fs_helper_modules() { + local dev=$1 fs=$2 + case "$fs" in + xfs|btrfs) + instmods crc32c + ;; + esac +} + +installkernel() { + # xfs and btrfs needs crc32c... + if [[ $hostonly ]]; then + for_each_host_dev_fs include_fs_helper_modules + : + else + instmods crc32c + fi +} install() { local _helpers