Some kernel configurations might build base dm support as a module.
Add module dm which ensures that dm_mod is there and loaded.
--- /dev/null
+#!/bin/bash
+
+exit 255
+
--- /dev/null
+modprobe dm_mod
--- /dev/null
+#!/bin/bash
+
+inst_hook pre-udev 30 "$moddir/dm-pre-udev.sh"
+
--- /dev/null
+#!/bin/bash
+instmods dm_mod
#!/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
#!/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