From 3c2796fc34d6b5d41c9ff7b4389651bbbe6d018b Mon Sep 17 00:00:00 2001 From: Tobias Powalowski Date: Sun, 7 May 2006 09:27:26 +0000 Subject: 'update the raid stuff + included a raid autodetectcion' git-svn-id: http://projects.archlinux.org/svn/initramfs/mkinitcpio@77 880c04e9-e011-0410-abf7-b926e227c9cd --- install/autodetect | 3 ++- install/raid | 32 ++++++++++++++++++++++---------- 2 files changed, 24 insertions(+), 11 deletions(-) (limited to 'install') diff --git a/install/autodetect b/install/autodetect index 6cf252c..73d8a21 100644 --- a/install/autodetect +++ b/install/autodetect @@ -7,7 +7,8 @@ install () AUTODETECT="$(auto_modules -e "/scsi/" -e "/block" -e "/fusion/" \ -e "/usb/" -e "/ide/" -e "/ieee1394/" -e "/cdrom"\ -e "/net/" -e "/pcmcia") - $(cat /proc/filesystems | grep -v nodev) " + $(cat /proc/filesystems | grep -v nodev) \ + $(mdadm -E -s /dev/hd* /dev/sd* | awk -Flevel= '{print $2}' | awk '{print $1}') " for m in $AUTODETECT; do modname="$(basename ${m%%\.ko})" diff --git a/install/raid b/install/raid index 84339c5..a7102b6 100644 --- a/install/raid +++ b/install/raid @@ -2,7 +2,7 @@ install () { - MODULES=" $(all_modules "/md/raid*")" + MODULES=" $(checked_modules "drivers/md/*" | grep -v "dm-") " BINARIES="" FILES="" SCRIPT="raid" @@ -15,15 +15,27 @@ cat<,,,,dev0,dev1 + - for raid arrays with persistent superblocks: + md=,dev0,dev1,...,devn + - for, to assemble a partitionable array: + md=d,dev0,dev1,...,devn + + Parameters: + - = the number of the md device: + 0 means md0, 1 means md1, ... + - = -1 linear mode, 0 striped mode + other modes are only supported with persistent super block + - = (raid-0 and raid-1 only): + Set the chunk size as 4k << n. + - = totally ignored + - : e.g. /dev/hda1,/dev/hdc1,/dev/sda1,/dev/sdb1 HELPEOF } -- cgit v1.2.3-24-g4f1b