]> git.ipfire.org Git - thirdparty/dracut.git/commitdiff
Make sure and get all the multipath related modules.
authorPeter Jones <pjones@redhat.com>
Tue, 24 Nov 2009 19:46:40 +0000 (14:46 -0500)
committerPeter Jones <pjones@redhat.com>
Wed, 25 Nov 2009 15:54:12 +0000 (10:54 -0500)
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.

modules.d/90multipath/installkernel

index 50c7d6a6d1450b55073ed4526660edea1e0b0f3d..4a596f0044ca8f180fd8e1144e160660927c1db3 100755 (executable)
@@ -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)