summaryrefslogtreecommitdiffstats
path: root/hooks/raid
diff options
context:
space:
mode:
Diffstat (limited to 'hooks/raid')
-rw-r--r--hooks/raid9
1 files changed, 9 insertions, 0 deletions
diff --git a/hooks/raid b/hooks/raid
new file mode 100644
index 0000000..cd1a920
--- /dev/null
+++ b/hooks/raid
@@ -0,0 +1,9 @@
+# vim: set ft=sh:
+run_hook ()
+{
+ #TODO scan for these somehow...
+ /sbin/modprobe -aq linear multipath raid0 raid1 raid456 raid10 >/dev/null 2>&1
+ # md= can be specified multiple times. The simplistic commandline
+ # parsing does not handle this, so we will let mdassemble parse it
+ /bin/mdassemble ${CMDLINE}
+}