]> git.ipfire.org Git - thirdparty/dracut.git/commitdiff
multipath: install all multipath path selector kernel modules
authorHarald Hoyer <harald@redhat.com>
Fri, 3 Jul 2015 12:24:50 +0000 (14:24 +0200)
committerHarald Hoyer <harald@redhat.com>
Wed, 11 Nov 2015 14:46:39 +0000 (15:46 +0100)
By default, dracut only builds in dm-service-time into the initramfs as
that is the default multipath.conf path selector. If the user changes
the path selector to "round robin" on the fly and runs dracut, multipath
does not find any paths on boot and the user will be dropped into a
shell.

Apparently, in RHEL7 dracut defaults to "hostonly" mode, i.e. modules
not currently in use at the time dracut runs do not get built into
initramfs. This is definitely one case where this doesn't work. A change
to reconfigure multipath probably should not render the system
unbootable.

https://bugzilla.redhat.com/show_bug.cgi?id=1195392
(cherry picked from commit f11d7a81e2eec37ed5b6708ed8cd359f0a5eaa69)

modules.d/90multipath/module-setup.sh

index 321f13eb420717cb8ba107570e7399a68575cae6..831c99ff8d739cb37869185bd7a01cd76502ba65 100755 (executable)
@@ -84,7 +84,7 @@ installkernel() {
     }
 
     ( find_kernel_modules_by_path drivers/scsi; if [ "$_arch" = "s390" -o "$_arch" = "s390x" ]; then find_kernel_modules_by_path drivers/s390/scsi; fi;
-      find_kernel_modules_by_path drivers/md )  |  mp_mod_filter  |  instmods
+      find_kernel_modules_by_path drivers/md )  |  mp_mod_filter  |  hostonly='' instmods
 }
 
 # called by dracut