Bug#827407: multipath-tools: initramfs should load same mp modules as sysvinit/sysmtemd files

Ritesh Raj Sarraf rrs at debian.org
Thu Jun 16 09:58:42 UTC 2016


On Wed, 2016-06-15 at 14:05 -0600, Andrew Patterson wrote:
> The systemd multpath-tools.service loads multipath modules using the following
> line:
> 
> ExecStartPre=/sbin/modprobe -a scsi_dh_alua scsi_dh_emc scsi_dh_rdac dm-
> multipath
> 
> While the sysvinit file /etc/init.d/multipath-tools-boot loads modules with:
> 
> modprobe dm-multipath 2> /dev/null || true
> 
> The /usr/share/initramfs-tools/scripts/local-top/multipath load modules using:
> 
> MP_MODULES="dm-multipath dm-emc"
> for module in ${MP_MODULES}; do
>   if modprobe "$module"; then
>     verbose && log_success_msg "loaded module ${module}."
>   else
>     log_failure_msg "failed to load module ${module}."
>   fi
> done
> 
> All three of these methods should load the same set of modules (the
> systemd one seems to be best).  Perhaps, there should be a
> /etc/default/multipath-tools config file that governs which modules to
> load?

Yes. That'd be good. Perhaps the module loading could be delegated to a separate
shell script. Such a script can then be invoked in ExecStartPre for systemd, and
for shell initscripts we'll just have to source it into the main initscript.

Do you want to submit a patch for this ?


-- 
Ritesh Raj Sarraf | http://people.debian.org/~rrs
Debian - The Universal Operating System
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 801 bytes
Desc: This is a digitally signed message part
URL: <http://lists.alioth.debian.org/pipermail/pkg-lvm-maintainers/attachments/20160616/209c2a05/attachment.sig>


More information about the pkg-lvm-maintainers mailing list