'don't use RAIDARRAYS if custom mdadm.conf is uses!'

This commit is contained in:
Tobias Powalowski 2009-03-28 17:28:33 +01:00
parent 50d9008d7f
commit 53ef29022c

View file

@ -1504,7 +1504,9 @@ ROOTFS="$(blkid -c /dev/null $PART_ROOT -o value -s TYPE)"
}
getraidarrays() {
if ! [ "$(grep ^ARRAY $DESTDIR/etc/mdadm.conf)" ]; then
RAIDARRAYS="$(echo -n $(cat /proc/mdstat 2>/dev/null | grep ^md | sed -e 's#\[[0-9]\]##g' -e 's# :.* raid[0-9]##g' -e 's#md#md=#g' -e 's# #,/dev/#g' -e 's#_##g'))"
fi
}
dolilo() {