From: Zoltán Böszörményi Date: Tue, 19 Jan 2021 14:17:05 +0000 (+0100) Subject: fix(99squash): use kernel config instead of modprobe to check modules X-Git-Tag: 052~140 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=911c2de9c34a2e96be3973954d368d3a14eb6785;p=thirdparty%2Fdracut.git fix(99squash): use kernel config instead of modprobe to check modules Signed-off-by: Zoltán Böszörményi --- diff --git a/modules.d/99squash/module-setup.sh b/modules.d/99squash/module-setup.sh index 5a6546ad3..9a61a59db 100644 --- a/modules.d/99squash/module-setup.sh +++ b/modules.d/99squash/module-setup.sh @@ -11,9 +11,9 @@ check() { return 1 fi - for i in squashfs loop overlay; do - if ! check_kernel_module $i; then - derror "dracut-squash module requires kernel module $i" + for i in CONFIG_SQUASHFS CONFIG_BLK_DEV_LOOP CONFIG_OVERLAY_FS ; do + if ! check_kernel_config $i; then + derror "dracut-squash module requires kernel configuration $i (y or m)" return 1 fi done