]> git.ipfire.org Git - thirdparty/dracut.git/commitdiff
kernel-modules: don't call instmods with empty arguments
authorHarald Hoyer <harald@redhat.com>
Mon, 14 Aug 2017 12:58:47 +0000 (14:58 +0200)
committerHarald Hoyer <harald@redhat.com>
Mon, 14 Aug 2017 12:58:47 +0000 (14:58 +0200)
otherwise it will try to read from stdin and stall

modules.d/90kernel-modules/module-setup.sh

index 462b541762f5059dac0b919da05671b7355e74ae..c6405e957b798f79a10c2a2d8c582f46836d3d73 100755 (executable)
@@ -57,7 +57,7 @@ installkernel() {
             if [[ -z $filesystems ]]; then
                 dracut_instmods -o -P ".*/(kernel/fs/nfs|kernel/fs/nfsd|kernel/fs/lockd)/.*" '=fs'
             fi
-        else
+        elif [[ "${host_fs_types[*]}" ]]; then
             hostonly='' instmods "${host_fs_types[@]}"
         fi
     fi