]> git.ipfire.org Git - thirdparty/dracut.git/commitdiff
Add dm_mod loader
authorPhilippe Seewer <philippe.seewer@bfh.ch>
Fri, 16 Oct 2009 09:00:04 +0000 (11:00 +0200)
committerHarald Hoyer <harald@redhat.com>
Tue, 27 Oct 2009 15:02:56 +0000 (16:02 +0100)
Some kernel configurations might build base dm support as a module.
Add module dm which ensures that dm_mod is there and loaded.

modules.d/90dm/check [new file with mode: 0755]
modules.d/90dm/dm-pre-udev.sh [new file with mode: 0644]
modules.d/90dm/install [new file with mode: 0755]
modules.d/90dm/installkernel [new file with mode: 0755]
modules.d/90dmraid/check
modules.d/90lvm/check

diff --git a/modules.d/90dm/check b/modules.d/90dm/check
new file mode 100755 (executable)
index 0000000..008f04f
--- /dev/null
@@ -0,0 +1,4 @@
+#!/bin/bash
+
+exit 255
+
diff --git a/modules.d/90dm/dm-pre-udev.sh b/modules.d/90dm/dm-pre-udev.sh
new file mode 100644 (file)
index 0000000..67eeb1c
--- /dev/null
@@ -0,0 +1 @@
+modprobe dm_mod
diff --git a/modules.d/90dm/install b/modules.d/90dm/install
new file mode 100755 (executable)
index 0000000..2ec0630
--- /dev/null
@@ -0,0 +1,4 @@
+#!/bin/bash
+
+inst_hook pre-udev 30 "$moddir/dm-pre-udev.sh"
+
diff --git a/modules.d/90dm/installkernel b/modules.d/90dm/installkernel
new file mode 100755 (executable)
index 0000000..f970827
--- /dev/null
@@ -0,0 +1,2 @@
+#!/bin/bash
+instmods dm_mod
index eacec6053770a598023ff2104baa8b53da71ca13..147b7fa464e20686cfeef76a8ff485d3f3cd1883 100755 (executable)
@@ -1,5 +1,8 @@
 #!/bin/bash
 
+# We depend on dm_mod being loaded
+[ "$1" = "-d" ] && echo dm
+
 # if we don't have dmraid installed on the host system, no point
 # in trying to support it in the initramfs.
 which dmraid >/dev/null 2>&1 || exit 1
index 25f24e23ed4a7d579f99461d2b328288fa94e327..20f21e8f842d29269364a1be08b2072f9f7b39cb 100755 (executable)
@@ -1,5 +1,8 @@
 #!/bin/bash
 
+# We depend on dm_mod being loaded
+[ "$1" = "-d" ] && echo dm
+
 # No point trying to support lvm if the binaries are missing
 which lvm >/dev/null 2>&1 || exit 1