]> git.ipfire.org Git - thirdparty/dracut.git/commitdiff
fix(99squash): use kernel config instead of modprobe to check modules
authorZoltán Böszörményi <zboszor@pr.hu>
Tue, 19 Jan 2021 14:17:05 +0000 (15:17 +0100)
committerJóhann B. Guðmundsson <johannbg@gmail.com>
Thu, 21 Jan 2021 16:33:18 +0000 (16:33 +0000)
Signed-off-by: Zoltán Böszörményi <zboszor@pr.hu>
modules.d/99squash/module-setup.sh

index 5a6546ad3087a8dd3a56ad191773dda51ca45281..9a61a59dbbd6f0f1ed3fd25ac1443417de6d85f7 100644 (file)
@@ -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