added mdraid autoassembling
authorHarald Hoyer <harald@redhat.com>
Fri, 6 Mar 2009 09:16:56 +0000 (10:16 +0100)
committerHarald Hoyer <harald@redhat.com>
Fri, 6 Mar 2009 09:32:12 +0000 (10:32 +0100)
modules.d/90mdraid/install [new file with mode: 0755]
modules.d/90mdraid/mdraid.sh [new file with mode: 0644]

diff --git a/modules.d/90mdraid/install b/modules.d/90mdraid/install
new file mode 100755 (executable)
index 0000000..f68cee6
--- /dev/null
@@ -0,0 +1,4 @@
+#!/bin/bash
+dracut_install mdadm
+inst_hook pre-mount 10 "$moddir/mdraid.sh"
+
diff --git a/modules.d/90mdraid/mdraid.sh b/modules.d/90mdraid/mdraid.sh
new file mode 100644 (file)
index 0000000..79f60c7
--- /dev/null
@@ -0,0 +1,8 @@
+#!/bin/sh
+mdadm   --assemble             \
+       --homehost=localhost    \
+       --auto-update-homehost  \
+       --scan 
+
+udevadm settle --timeout=30 
+