From: Fabian Vogt Date: Fri, 3 Feb 2017 15:02:34 +0000 (+0100) Subject: Fix loading of modules in modules-load.d X-Git-Tag: 047~67^2 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=refs%2Fpull%2F319%2Fhead;p=thirdparty%2Fdracut.git Fix loading of modules in modules-load.d 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. --- diff --git a/modules.d/00systemd/module-setup.sh b/modules.d/00systemd/module-setup.sh index d022de65e..1ed4b34f6 100755 --- a/modules.d/00systemd/module-setup.sh +++ b/modules.d/00systemd/module-setup.sh @@ -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