diff --git a/usr/lib/archboot/installer/mountpoints.sh b/usr/lib/archboot/installer/mountpoints.sh index 5254de43c..53495def3 100644 --- a/usr/lib/archboot/installer/mountpoints.sh +++ b/usr/lib/archboot/installer/mountpoints.sh @@ -158,8 +158,8 @@ _mountpoints() { _DEV=$(cat "${_ANSWER}") _FSTYPE="$(${_LSBLK} FSTYPE "${_DEV}")" if [[ "${_DEV}" != "NONE" ]]; then - # always create swap _clear_fs_values + # create swap if not already swap formatted if [[ -n "${_ASK_MOUNTPOINTS}" && ! "${_FSTYPE}" == "swap" ]]; then _DOMKFS=1 _FSTYPE="swap"