mirror of
https://gitlab.archlinux.org/tpowa/archboot.git
synced 2024-09-20 03:50:37 +02:00
fix RAIDARRAY error
This commit is contained in:
parent
f77c84c4ea
commit
6d0c2c8668
1 changed files with 1 additions and 1 deletions
|
@ -25,7 +25,7 @@ _getrootflags() {
|
|||
|
||||
_getraidarrays() {
|
||||
_RAIDARRAYS=""
|
||||
if ! grep -q ^ARRAY "${_DESTDIR}"/etc/mdadm.conf; then
|
||||
if [[ -f "${_DESTDIR}"/etc/mdadm.conf ]] && ! grep -q '^ARRAY' "${_DESTDIR}"/etc/mdadm.conf 2>${_NO_LOG}; then
|
||||
_RAIDARRAYS="$(echo -n "$(grep ^md /proc/mdstat 2>"${_NO_LOG}" | 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
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue