'use environment mdadm to write config file'

This commit is contained in:
Tobias Powalowski 2009-03-28 18:35:57 +01:00
parent b085cc356e
commit 8f87b0a6f2

View file

@ -1368,7 +1368,7 @@ auto_mdadm()
if [ -e $DESTDIR/etc/mdadm.conf ];then if [ -e $DESTDIR/etc/mdadm.conf ];then
if [ "$(cat /proc/mdstat | grep ^md)" ]; then if [ "$(cat /proc/mdstat | grep ^md)" ]; then
DIALOG --infobox "Adding raid setup to $DESTDIR/etc/mdadm.conf ..." 4 40 DIALOG --infobox "Adding raid setup to $DESTDIR/etc/mdadm.conf ..." 4 40
chroot ${DESTDIR} mdadm -Ds >> $DESTDIR/etc/mdadm.conf mdadm -Ds >> $DESTDIR/etc/mdadm.conf
fi fi
fi fi
} }