]> git.pld-linux.org Git - projects/geninitrd.git/commitdiff
Drop spares=X from initrd mdadm.conf.
authorArkadiusz Miśkiewicz <arekm@maven.pl>
Mon, 29 Jan 2007 22:24:19 +0000 (22:24 +0000)
committerArkadiusz Miśkiewicz <arekm@maven.pl>
Mon, 29 Jan 2007 22:24:19 +0000 (22:24 +0000)
svn-id: @8212

geninitrd

index 65bcc293cbd9d517104948eca228f8f3e4a0ff39..a2d986fe5261d0f511072064a7937897242e95a9 100755 (executable)
--- a/geninitrd
+++ b/geninitrd
@@ -1282,7 +1282,7 @@ initrd_gen_softraid() {
 
                echo "DEVICE $cr_dev_list" >> "$MNTIMAGE/etc/mdadm.conf"
                cr_dev_list_md="$(echo "$cr_dev_list" | xargs | awk ' { gsub(/ +/,",",$0); print $0; }')"
-               cr_md_conf=$(/sbin/mdadm --detail --brief --config=/etc/mdadm.conf $cr_rootdev)
+               cr_md_conf=$(/sbin/mdadm --detail --brief --config=/etc/mdadm.conf $cr_rootdev | awk ' { gsub(/spares=[0-9]+/, "", $0); print $0; }')
                if [ -n "$cr_md_conf" ]; then
                        echo "$cr_md_conf" >> "$MNTIMAGE/etc/mdadm.conf"
                else
This page took 0.45434 seconds and 4 git commands to generate.