mirror of
https://gitlab.archlinux.org/tpowa/archboot.git
synced 2024-09-19 19:40:37 +02:00
'don't use RAIDARRAYS if custom mdadm.conf is uses!'
This commit is contained in:
parent
50d9008d7f
commit
53ef29022c
1 changed files with 3 additions and 1 deletions
|
@ -1504,7 +1504,9 @@ ROOTFS="$(blkid -c /dev/null $PART_ROOT -o value -s TYPE)"
|
||||||
}
|
}
|
||||||
|
|
||||||
getraidarrays() {
|
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'))"
|
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() {
|
dolilo() {
|
||||||
|
|
Loading…
Reference in a new issue