From: Peter Jones Date: Tue, 24 Nov 2009 19:46:40 +0000 (-0500) Subject: Make sure and get all the multipath related modules. X-Git-Tag: 003~34 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=323428ced555c588b978b9a7bb8c9f8ef9641ec1;p=thirdparty%2Fdracut.git Make sure and get all the multipath related modules. Install all modules that are any of: - scsi device handler - dm log handler - dm path selector - dm target It would be nice if we could tell which log handlers and targets are multipath related, but we really can't. --- diff --git a/modules.d/90multipath/installkernel b/modules.d/90multipath/installkernel index 50c7d6a6d..4a596f004 100755 --- a/modules.d/90multipath/installkernel +++ b/modules.d/90multipath/installkernel @@ -1 +1,8 @@ -instmods dm-multipath dm-round-robin multipath +#!/bin/bash + +mp_mod_test() { + local mpfuncs='scsi_register_device_handler|dm_dirty_log_type_register|dm_register_path_selector|dm_register_target' + nm -uPA "$1" | egrep -q "$mpfuncs" +} + +instmods $(filter_kernel_modules mp_mod_test)