]> git.ipfire.org Git - thirdparty/dracut.git/commitdiff
Fix loading of modules in modules-load.d 319/head
authorFabian Vogt <fvogt@suse.com>
Fri, 3 Feb 2017 15:02:34 +0000 (16:02 +0100)
committerDaniel Molkentin <dmolkentin@suse.com>
Fri, 15 Dec 2017 19:19:52 +0000 (20:19 +0100)
With hostonly enabled, only modules that are currently
loaded are included in the initrd. Modules which are
explicitly listed in modules-load.d do not need to
be filtered that way. Fix for boo#962224.

modules.d/00systemd/module-setup.sh

index d022de65e55997433d574b54b2696a49880c41a9..1ed4b34f689d9f2766084a5f2fc1ad3d36c005b5 100755 (executable)
@@ -160,7 +160,7 @@ install() {
     }
 
     _mods=$(modules_load_get /usr/lib/modules-load.d)
-    [[ $_mods ]] && instmods $_mods
+    [[ $_mods ]] && hostonly='' instmods $_mods
 
     if [[ $hostonly ]]; then
         inst_multiple -H -o \
@@ -180,7 +180,7 @@ install() {
             ${NULL}
 
         _mods=$(modules_load_get /etc/modules-load.d)
-        [[ $_mods ]] && instmods $_mods
+        [[ $_mods ]] && hostonly='' instmods $_mods
     fi
 
     if ! [[ -e "$initdir/etc/machine-id" ]]; then