summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThomas Bächler <thomas@archlinux.org>2010-02-05 23:43:36 +0100
committerThomas Bächler <thomas@archlinux.org>2010-02-05 23:43:36 +0100
commit6390dacd274faa6d960aa67d342a10a5388ef98f (patch)
tree411799c0aae7c8af42d1f13d7329db3566af3a78
parentaf47b16bdc76608b7edb17fa6b80c18e53c775ec (diff)
downloadmkinitcpio-6390dacd274faa6d960aa67d342a10a5388ef98f.tar.gz
mkinitcpio-6390dacd274faa6d960aa67d342a10a5388ef98f.tar.xz
Remove the raid hook: This will be replaced by the better hook from the mdadm package
-rw-r--r--hooks/raid9
-rw-r--r--install/raid39
2 files changed, 0 insertions, 48 deletions
diff --git a/hooks/raid b/hooks/raid
deleted file mode 100644
index cd1a920..0000000
--- a/hooks/raid
+++ /dev/null
@@ -1,9 +0,0 @@
-# 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}
-}
diff --git a/install/raid b/install/raid
deleted file mode 100644
index 0b227d2..0000000
--- a/install/raid
+++ /dev/null
@@ -1,39 +0,0 @@
-# vim: set ft=sh:
-
-install ()
-{
- MODULES=" $(checked_modules "drivers/md/*" | grep -v "dm-") "
- BINARIES=""
- FILES=""
- SCRIPT="raid"
- add_file "/usr/lib/klibc/bin/mdassemble" "/bin/mdassemble"
-}
-
-help ()
-{
-cat<<HELPEOF
- This hook loads the necessary modules for an raid root device,
- and assemble the raid device when run.
-
- Kernel Parameters:
- Specify all your md arrays with md= parameter:
- ::: Example ::: md=0,/dev/sda3,/dev/sda4 md=1,/dev/hda1,/dev/hdb1
- This will setup 2 md arrays with persistent superblocks
-
- Setup:
- - for old raid arrays without persistent superblocks:
- md=<md device no.>,<raid level>,<chunk size factor>,<fault level>,dev0,dev1
- - for raid arrays with persistent superblocks:
- md=<md device no.>,dev0,dev1,...,devn
-
- Parameters:
- - <md device no.> = the number of the md device:
- 0 means md0, 1 means md1, ...
- - <raid level> = -1 linear mode, 0 striped mode
- other modes are only supported with persistent super block
- - <chunk size factor> = (raid-0 and raid-1 only):
- Set the chunk size as 4k << n.
- - <fault level> = totally ignored
- - <dev0-devn>: e.g. /dev/hda1,/dev/hdc1,/dev/sda1,/dev/sdb1
-HELPEOF
-}