'fixed mkfs on answering no'

This commit is contained in:
Tobias Powalowski 2009-01-26 17:14:38 +01:00
parent 66d69f3780
commit 6cfeaa640d

View file

@ -697,7 +697,6 @@ mountpoints() {
FSTYPE=$(echo $line | cut -d: -f 2) FSTYPE=$(echo $line | cut -d: -f 2)
MP=$(echo $line | cut -d: -f 3) MP=$(echo $line | cut -d: -f 3)
DOMKFS=$(echo $line | cut -d: -f 4) DOMKFS=$(echo $line | cut -d: -f 4)
umount ${DESTDIR}${MP}
if [ "$DOMKFS" = "yes" ]; then if [ "$DOMKFS" = "yes" ]; then
if [ "$FSTYPE" = "swap" ]; then if [ "$FSTYPE" = "swap" ]; then
DIALOG --infobox "Creating and activating swapspace on $PART" 0 0 DIALOG --infobox "Creating and activating swapspace on $PART" 0 0
@ -709,7 +708,7 @@ mountpoints() {
if [ "$FSTYPE" = "swap" ]; then if [ "$FSTYPE" = "swap" ]; then
DIALOG --infobox "Activating swapspace on $PART" 0 0 DIALOG --infobox "Activating swapspace on $PART" 0 0
else else
DIALOG --infobox "Mounting $PART to ${DESTDIR}${MP}" DIALOG --infobox "Mounting $FSTYPE on $PART to ${DESTDIR}${MP}" 0 0
fi fi
_mkfs no $PART $FSTYPE $DESTDIR $MP || return 1 _mkfs no $PART $FSTYPE $DESTDIR $MP || return 1
fi fi