summaryrefslogtreecommitdiffstats
path: root/abs/core/mdadm
diff options
context:
space:
mode:
authorMichael Hanson <hansonorders@verizon.net>2010-11-30 23:52:49 (GMT)
committerMichael Hanson <hansonorders@verizon.net>2010-11-30 23:52:49 (GMT)
commitef974fb08972483d6852c9d5b2f23e1d33343b76 (patch)
treefa5aad1563681bf14a0fed3cdf8f599f7e8e853c /abs/core/mdadm
parentba6da4b6e7eab74dd3dcac947a11361b1b9f1eed (diff)
downloadlinhes_pkgbuild-ef974fb08972483d6852c9d5b2f23e1d33343b76.zip
linhes_pkgbuild-ef974fb08972483d6852c9d5b2f23e1d33343b76.tar.gz
linhes_pkgbuild-ef974fb08972483d6852c9d5b2f23e1d33343b76.tar.bz2
Housekeeping
Diffstat (limited to 'abs/core/mdadm')
-rw-r--r--abs/core/mdadm/raid-partitions_hook21
-rw-r--r--abs/core/mdadm/raid-partitions_install32
2 files changed, 0 insertions, 53 deletions
diff --git a/abs/core/mdadm/raid-partitions_hook b/abs/core/mdadm/raid-partitions_hook
deleted file mode 100644
index bed1cb2..0000000
--- a/abs/core/mdadm/raid-partitions_hook
+++ /dev/null
@@ -1,21 +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
- for i in $(replace $(echo $md) ',' ' '); do
- case $i in d[0-9])
- for i in 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15; do
- /sbin/mdadm --create -a mdp /dev/md_d$i >/dev/null 2>&1
- done
- mdadm --assemble --auto=mdp /dev/md_$(replace $(echo $md) ',' ' ')
- export USE_RAID_ARRAY=1
- ;;
- esac
- done
- if ! [ "$USE_RAID_ARRAY" = "1" ] ; then
- /bin/mdassemble ${CMDLINE}
- fi
-}
diff --git a/abs/core/mdadm/raid-partitions_install b/abs/core/mdadm/raid-partitions_install
deleted file mode 100644
index 8fe5184..0000000
--- a/abs/core/mdadm/raid-partitions_install
+++ /dev/null
@@ -1,32 +0,0 @@
-# vim: set ft=sh:
-
-install ()
-{
- MODULES=" $(checked_modules "drivers/md/*" | grep -v "dm-") "
- BINARIES="mdadm"
- FILES=""
- SCRIPT="raid-partitions"
- add_file "/usr/lib/klibc/bin/mdassemble" "/bin/mdassemble"
-}
-
-help ()
-{
-cat<<HELPEOF
- This hook loads the necessary modules for an raid mdp/partitionable root device,
- and assemble the raid device when run.
-
- Kernel Parameters:
- Specify all your md arrays with md= parameter:
- ::: Example ::: md=d0,/dev/sda3,/dev/sda4 md=d1,/dev/hda1,/dev/hdb1
- This will setup 2 md partitionable arrays
-
- Setup:
- - to assemble a partitionable array:
- md=d<md device no.>,dev0,dev1,...,devn
-
- Parameters:
- - <md device no.> = the number of the md device:
- 0 means md0, 1 means md1, ...
- - <dev0-devn>: e.g. /dev/hda1,/dev/hdc1,/dev/sda1,/dev/sdb1
-HELPEOF
-}