From 9c1fd3318a40ccb70797305fc91926f380887f99 Mon Sep 17 00:00:00 2001 From: Dave Reisner Date: Sun, 8 Apr 2012 20:09:36 -0400 Subject: [PATCH] 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 --- install/autodetect | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- 1.7.10