]> git.ipfire.org Git - thirdparty/dracut.git/commitdiff
fix: shellcheck for modules.d/90dm/module-setup.sh
authorHarald Hoyer <harald@redhat.com>
Fri, 12 Feb 2021 12:26:11 +0000 (13:26 +0100)
committerHarald Hoyer <harald@hoyer.xyz>
Mon, 15 Feb 2021 10:00:37 +0000 (11:00 +0100)
modules.d/90dm/module-setup.sh

index 02d97c24e4546f11888bb6bbe2166f04834504c0..01482343fe58800334f8b87f9bf307493ad88e2f 100755 (executable)
@@ -13,12 +13,12 @@ depends() {
 
 # called by dracut
 installkernel() {
-    instmods =drivers/md dm_mod dm-cache dm-cache-mq dm-cache-cleaner
+    instmods '=drivers/md' dm_mod dm-cache dm-cache-mq dm-cache-cleaner
 }
 
 # called by dracut
 install() {
-    modinfo -k $kernel dm_mod >/dev/null 2>&1 && \
+    modinfo -k "$kernel" dm_mod >/dev/null 2>&1 && \
         inst_hook pre-udev 30 "$moddir/dm-pre-udev.sh"
 
     inst_multiple dmsetup