summaryrefslogtreecommitdiffstats
path: root/install
diff options
context:
space:
mode:
authorDave Reisner <dreisner@archlinux.org>2012-04-09 02:09:36 +0200
committerDave Reisner <dreisner@archlinux.org>2012-04-09 02:13:17 +0200
commit9c1fd3318a40ccb70797305fc91926f380887f99 (patch)
treefe6558e57076931b6cd37b33c8489b454d564887 /install
parentfeef92a8fbb1ca54796dfcbe1a9b427b1c4e29e8 (diff)
downloadmkinitcpio-9c1fd3318a40ccb70797305fc91926f380887f99.tar.gz
mkinitcpio-9c1fd3318a40ccb70797305fc91926f380887f99.tar.xz
mdadm: fix raid[456] autodetection
20509ade neglected to filter the raid456 module when detecting raid[456] arrays, which lead to non-bootable systems from the autodetect-enabled image. Signed-off-by: Dave Reisner <dreisner@archlinux.org>
Diffstat (limited to 'install')
-rw-r--r--install/autodetect2
1 files changed, 1 insertions, 1 deletions
diff --git a/install/autodetect b/install/autodetect
index b6ec28a..4ed7ccf 100644
--- a/install/autodetect
+++ b/install/autodetect
@@ -41,7 +41,7 @@ build() {
md_devs=(/sys/class/block/md*/md/level)
if [[ -e $md_devs ]]; then
(( !QUIET )) && plain "found %d mdadm arrays to scan" "${#md_devs[*]}"
- sort -u "${md_devs[@]}" >>"$MODULE_FILE"
+ sed 's/^raid[456]$/raid456/' "${md_devs[@]}" | sort -u >>"$MODULE_FILE"
fi
if (( !QUIET )) && [[ -s $MODULE_FILE ]]; then