From: Philippe Seewer Date: Fri, 16 Oct 2009 09:00:04 +0000 (+0200) Subject: Add dm_mod loader X-Git-Tag: 003~81 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=41f8a4f14f96696b29debde70d9b510c59d5e509;p=thirdparty%2Fdracut.git Add dm_mod loader Some kernel configurations might build base dm support as a module. Add module dm which ensures that dm_mod is there and loaded. --- diff --git a/modules.d/90dm/check b/modules.d/90dm/check new file mode 100755 index 000000000..008f04fcf --- /dev/null +++ b/modules.d/90dm/check @@ -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 index 000000000..67eeb1cb1 --- /dev/null +++ b/modules.d/90dm/dm-pre-udev.sh @@ -0,0 +1 @@ +modprobe dm_mod diff --git a/modules.d/90dm/install b/modules.d/90dm/install new file mode 100755 index 000000000..2ec06308e --- /dev/null +++ b/modules.d/90dm/install @@ -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 index 000000000..f970827b5 --- /dev/null +++ b/modules.d/90dm/installkernel @@ -0,0 +1,2 @@ +#!/bin/bash +instmods dm_mod diff --git a/modules.d/90dmraid/check b/modules.d/90dmraid/check index eacec6053..147b7fa46 100755 --- a/modules.d/90dmraid/check +++ b/modules.d/90dmraid/check @@ -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 diff --git a/modules.d/90lvm/check b/modules.d/90lvm/check index 25f24e23e..20f21e8f8 100755 --- a/modules.d/90lvm/check +++ b/modules.d/90lvm/check @@ -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