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

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