]> git.ipfire.org Git - thirdparty/dracut.git/commitdiff
90dm: install more device mapper kernel modules
authorHarald Hoyer <harald@redhat.com>
Mon, 23 Nov 2009 11:12:56 +0000 (12:12 +0100)
committerHarald Hoyer <harald@redhat.com>
Mon, 23 Nov 2009 11:28:58 +0000 (12:28 +0100)
modules.d/90dm/dm-pre-udev.sh
modules.d/90dm/install
modules.d/90dm/installkernel

index 67eeb1cb1fe7132580695871e39f49a20a23dd9d..8fdaeaf3851455c8a24532e2c9de9c188fac59db 100644 (file)
@@ -1 +1 @@
-modprobe dm_mod
+modprobe dm_mod 
index 2ec06308ef5c164e0c77febaa4eb9941fe0cc8f4..ad9b3c75820cef09b705f3a86df8f07354dcaa29 100755 (executable)
@@ -1,4 +1,5 @@
 #!/bin/bash
 
-inst_hook pre-udev 30 "$moddir/dm-pre-udev.sh"
+modinfo -k $kernel dm_mod >/dev/null 2>&1 && \
+    inst_hook pre-udev 30 "$moddir/dm-pre-udev.sh"
 
index f970827b5ffa52a6bcec80c4dcd77e1e0606654c..af51a2256a290f15865289bc33a27f4809172e88 100755 (executable)
@@ -1,2 +1,9 @@
 #!/bin/bash
-instmods dm_mod
+
+for i in \
+    dm-snapshot dm-delay dm-mirror dm-mod dm-queue-length \
+    dm-region-hash dm-round-robin dm-service-time dm-snapshot \
+    ; do
+    modinfo -k $kernel $i >/dev/null 2>&1 && instmods $i
+done
+