Blame SOURCES/0277-multipath-install-all-multipath-path-selector-kernel.patch

18971c
From f11d7a81e2eec37ed5b6708ed8cd359f0a5eaa69 Mon Sep 17 00:00:00 2001
18971c
From: Harald Hoyer <harald@redhat.com>
18971c
Date: Fri, 3 Jul 2015 14:24:50 +0200
18971c
Subject: [PATCH] multipath: install all multipath path selector kernel modules
18971c
18971c
By default, dracut only builds in dm-service-time into the initramfs as
18971c
that is the default multipath.conf path selector. If the user changes
18971c
the path selector to "round robin" on the fly and runs dracut, multipath
18971c
does not find any paths on boot and the user will be dropped into a
18971c
shell.
18971c
18971c
Apparently, in RHEL7 dracut defaults to "hostonly" mode, i.e. modules
18971c
not currently in use at the time dracut runs do not get built into
18971c
initramfs. This is definitely one case where this doesn't work. A change
18971c
to reconfigure multipath probably should not render the system
18971c
unbootable.
18971c
18971c
https://bugzilla.redhat.com/show_bug.cgi?id=1195392
18971c
---
18971c
 modules.d/90multipath/module-setup.sh | 2 +-
18971c
 1 file changed, 1 insertion(+), 1 deletion(-)
18971c
18971c
diff --git a/modules.d/90multipath/module-setup.sh b/modules.d/90multipath/module-setup.sh
18971c
index d37f9587..acfc56f8 100755
18971c
--- a/modules.d/90multipath/module-setup.sh
18971c
+++ b/modules.d/90multipath/module-setup.sh
18971c
@@ -64,7 +64,7 @@ installkernel() {
18971c
     }
18971c
 
18971c
     ( find_kernel_modules_by_path drivers/scsi; if [ "$_arch" = "s390" -o "$_arch" = "s390x" ]; then find_kernel_modules_by_path drivers/s390/scsi; fi;
18971c
-      find_kernel_modules_by_path drivers/md )  |  mp_mod_filter  |  instmods
18971c
+      find_kernel_modules_by_path drivers/md )  |  mp_mod_filter  |  hostonly='' instmods
18971c
 }
18971c
 
18971c
 install() {