start adding SWAP file support

This commit is contained in:
Tobias Powalowski 2024-06-06 07:49:37 +02:00
parent 15b80ce10e
commit 1f69ee91e0

View file

@ -459,9 +459,7 @@ _mkfs() {
return 1
fi
fi
swapon "${_SWAP}" &>"${_LOG}"
#shellcheck disable=SC2181
if [[ $? != 0 ]]; then
if ! swapon "${_SWAP}" &>"${_LOG}"; then
_dialog --title " ERROR " --no-mouse --infobox "Activating swap: swapon ${1}" 0 0
sleep 5
return 1