Blame SOURCES/0540-Fix-loading-of-modules-in-modules-load.d.patch

18971c
From 249dcc61ea2cfb5963c7f9565dcee3405e064c7b Mon Sep 17 00:00:00 2001
18971c
From: Fabian Vogt <fvogt@suse.com>
18971c
Date: Fri, 3 Feb 2017 16:02:34 +0100
18971c
Subject: [PATCH] Fix loading of modules in modules-load.d
18971c
18971c
With hostonly enabled, only modules that are currently
18971c
loaded are included in the initrd. Modules which are
18971c
explicitly listed in modules-load.d do not need to
18971c
be filtered that way. Fix for boo#962224.
18971c
18971c
Cherry-picked from: 9fd3e045d
18971c
Resolves: #1547730
18971c
---
18971c
 modules.d/98systemd/module-setup.sh | 4 ++--
18971c
 1 file changed, 2 insertions(+), 2 deletions(-)
18971c
18971c
diff --git a/modules.d/98systemd/module-setup.sh b/modules.d/98systemd/module-setup.sh
18971c
index 10beadda..c59cb945 100755
18971c
--- a/modules.d/98systemd/module-setup.sh
18971c
+++ b/modules.d/98systemd/module-setup.sh
18971c
@@ -166,7 +166,7 @@ install() {
18971c
     }
18971c
 
18971c
     _mods=$(modules_load_get /usr/lib/modules-load.d)
18971c
-    [[ $_mods ]] && instmods $_mods
18971c
+    [[ $_mods ]] && hostonly='' instmods $_mods
18971c
 
18971c
     if [[ $hostonly ]]; then
18971c
         inst_multiple -o \
18971c
@@ -181,7 +181,7 @@ install() {
18971c
             /etc/sysctl.conf
18971c
 
18971c
         _mods=$(modules_load_get /etc/modules-load.d)
18971c
-        [[ $_mods ]] && instmods $_mods
18971c
+        [[ $_mods ]] && hostonly='' instmods $_mods
18971c
     fi
18971c
 
18971c
     if ! [[ -e "$initdir/etc/machine-id" ]]; then