87cf605
From 3bd3ef5819141b06eb4d5c9e139e047efccb6d1f Mon Sep 17 00:00:00 2001
87cf605
From: Harald Hoyer <harald@redhat.com>
87cf605
Date: Mon, 14 Aug 2017 14:58:47 +0200
87cf605
Subject: [PATCH] kernel-modules: don't call instmods with empty arguments
87cf605
87cf605
otherwise it will try to read from stdin and stall
87cf605
---
87cf605
 modules.d/90kernel-modules/module-setup.sh | 2 +-
87cf605
 1 file changed, 1 insertion(+), 1 deletion(-)
87cf605
87cf605
diff --git a/modules.d/90kernel-modules/module-setup.sh b/modules.d/90kernel-modules/module-setup.sh
87cf605
index 462b5417..c6405e95 100755
87cf605
--- a/modules.d/90kernel-modules/module-setup.sh
87cf605
+++ b/modules.d/90kernel-modules/module-setup.sh
87cf605
@@ -57,7 +57,7 @@ installkernel() {
87cf605
             if [[ -z $filesystems ]]; then
87cf605
                 dracut_instmods -o -P ".*/(kernel/fs/nfs|kernel/fs/nfsd|kernel/fs/lockd)/.*" '=fs'
87cf605
             fi
87cf605
-        else
87cf605
+        elif [[ "${host_fs_types[*]}" ]]; then
87cf605
             hostonly='' instmods "${host_fs_types[@]}"
87cf605
         fi
87cf605
     fi
87cf605