move mdadm dialog to second check

This commit is contained in:
Tobias Powalowski 2022-11-26 20:01:55 +01:00
parent e05d808297
commit d93bbedbd3

View file

@ -44,8 +44,8 @@ auto_swap () {
auto_mdadm() auto_mdadm()
{ {
if [[ -e ${DESTDIR}/etc/mdadm.conf ]]; then if [[ -e ${DESTDIR}/etc/mdadm.conf ]]; then
DIALOG --infobox "Enable mdadm settings on installed system ..." 3 70
if grep -q ^md /proc/mdstat 2>/dev/null; then if grep -q ^md /proc/mdstat 2>/dev/null; then
DIALOG --infobox "Enable mdadm settings on installed system ..." 3 70
mdadm -Ds >> "${DESTDIR}"/etc/mdadm.conf mdadm -Ds >> "${DESTDIR}"/etc/mdadm.conf
fi fi
sleep 1 sleep 1