fix swap message in autoprepare mode

This commit is contained in:
Tobias Powalowski 2014-08-02 11:24:13 +02:00
parent a624f237a3
commit 2fdc70f04b

View file

@ -1703,8 +1703,11 @@ autoprepare() {
DOSUBVOLUME="no"
fi
BTRFS_LEVEL="NONE"
### TODO: SWAP CHECK MISSING
DIALOG --infobox "Creating ${FSTYPE} on ${PART}\nwith FSLABEL ${LABEL_NAME} ,\nmounting to ${DESTDIR}${MP}" 0 0
if ! [[ "${FSTYPE}" = "swap" ]]; then
DIALOG --infobox "Creating ${FSTYPE} on ${PART}\nwith FSLABEL ${LABEL_NAME} ,\nmounting to ${DESTDIR}${MP}" 0 0
else
DIALOG --infobox "Creating and activating swapspace on ${PART}" 0 0
fi
_mkfs ${DOMKFS} ${PART} ${FSTYPE} ${DESTDIR} ${MP} ${LABEL_NAME} ${FS_OPTIONS} ${BTRFS_DEVICES} ${BTRFS_LEVEL} ${BTRFS_SUBVOLUME} ${DOSUBVOLUME} ${BTRFS_COMPRESS} || return 1
sleep 1
done