diff --git a/usr/share/archboot/installer/setup b/usr/share/archboot/installer/setup index 781925185..1e7211f62 100755 --- a/usr/share/archboot/installer/setup +++ b/usr/share/archboot/installer/setup @@ -1504,7 +1504,9 @@ ROOTFS="$(blkid -c /dev/null $PART_ROOT -o value -s TYPE)" } getraidarrays() { -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'))" + 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() {