From 9fd3e045d5b41ba5cf9fb0c51db9750ce0e530d8 Mon Sep 17 00:00:00 2001 From: Fabian Vogt Date: Fri, 3 Feb 2017 16:02:34 +0100 Subject: [PATCH] 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. --- modules.d/00systemd/module-setup.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 -- 2.47.2