Initial commit: Uploaded everything from abs/core
[arch-rock.git] / base / mdadm / raid-partitions_install
blob8fe518467a1b7378fb1a6b70e30a491b5e9beec0
1 # vim: set ft=sh:
3 install ()
5     MODULES=" $(checked_modules "drivers/md/*" | grep -v "dm-") "
6     BINARIES="mdadm"
7     FILES=""
8     SCRIPT="raid-partitions"
9     add_file "/usr/lib/klibc/bin/mdassemble" "/bin/mdassemble"
12 help ()
14 cat<<HELPEOF
15   This hook loads the necessary modules for an raid mdp/partitionable root device,
16   and assemble the raid device when run.
18   Kernel Parameters:
19   Specify all your md arrays with md= parameter:
20   ::: Example ::: md=d0,/dev/sda3,/dev/sda4 md=d1,/dev/hda1,/dev/hdb1
21   This will setup 2 md partitionable arrays 
23   Setup:
24   - to assemble a partitionable array:
25     md=d<md device no.>,dev0,dev1,...,devn
27   Parameters:
28   - <md device no.> = the number of the md device: 
29     0 means md0, 1 means md1, ...
30   - <dev0-devn>: e.g. /dev/hda1,/dev/hdc1,/dev/sda1,/dev/sdb1
31 HELPEOF