summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPeter Jones <pjones@redhat.com>2009-11-24 14:46:40 -0500
committerPeter Jones <pjones@redhat.com>2009-11-25 10:54:12 -0500
commit323428ced555c588b978b9a7bb8c9f8ef9641ec1 (patch)
treede9fb1c63a15ed30d7658b4783d2494a62319c95
parent8f99a7f6e356e14fd1ec54f30b34ad7d084866bf (diff)
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.
-rwxr-xr-xmodules.d/90multipath/installkernel9
1 files changed, 8 insertions, 1 deletions
diff --git a/modules.d/90multipath/installkernel b/modules.d/90multipath/installkernel
index 50c7d6a..4a596f0 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)