start adding SWAP file support

This commit is contained in:
Tobias Powalowski 2024-06-05 19:17:26 +02:00
parent d7667114e5
commit f30e8fb570

View file

@ -70,7 +70,7 @@ _enter_mountpoint() {
done done
_DEV="${_SWAPFILE}" _DEV="${_SWAPFILE}"
while [[ -z "${_SWAPFILE_SIZE}" ]]; do while [[ -z "${_SWAPFILE_SIZE}" ]]; do
_dialog --no-cancel --title " Enter Size in MiB " --inputbox "16000" 7 65 "/archlinux.swap" 2>"${_ANSWER}" || return 1 _dialog --no-cancel --title " Enter Swap Size in MiB " --inputbox "" 7 65 "16000" 2>"${_ANSWER}" || return 1
_SWAPFILE_SIZE=$(cat "${_ANSWER}") _SWAPFILE_SIZE=$(cat "${_ANSWER}")
done done
_FSOPTS="${_SWAPFILE_SIZE}" _FSOPTS="${_SWAPFILE_SIZE}"