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

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