Blame 0109-multipath-install-all-multipath-path-selector-kernel.patch

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