Browse Source

multipath: install all multipath path selector kernel modules

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 f11d7a81e2)
master
Harald Hoyer 10 years ago
parent
commit
848edf22f0
  1. 2
      modules.d/90multipath/module-setup.sh

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

@ -84,7 +84,7 @@ installkernel() { @@ -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

Loading…
Cancel
Save