summaryrefslogtreecommitdiffstats
path: root/hooks/raid
diff options
context:
space:
mode:
Diffstat (limited to 'hooks/raid')
-rw-r--r--hooks/raid17
1 files changed, 17 insertions, 0 deletions
diff --git a/hooks/raid b/hooks/raid
new file mode 100644
index 0000000..a81c172
--- /dev/null
+++ b/hooks/raid
@@ -0,0 +1,17 @@
+# vim: set ft=sh:
+
+# kinit handles md/raid assembly
+# we just need modules
+
+install ()
+{
+ MODULES=" $(find "${MODULEDIR}/kernel/drivers/md/" -name *.ko) md raid0 raid1 raid2 raid5 raid6"
+ BINARIES=""
+ FILES=""
+}
+
+run_hook ()
+{
+ #TODO
+ /bin/modprobe -aq raid0 raid1 raid2 raid5 raid6
+}