From 97728e8a1649015a4a558684958eb3f98c0dee42 Mon Sep 17 00:00:00 2001 From: Tobias Powalowski Date: Thu, 6 Jun 2024 08:54:02 +0200 Subject: [PATCH] start adding SWAP file support --- usr/lib/archboot/installer/mountpoints.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/usr/lib/archboot/installer/mountpoints.sh b/usr/lib/archboot/installer/mountpoints.sh index 635c97322..ffe60a45d 100644 --- a/usr/lib/archboot/installer/mountpoints.sh +++ b/usr/lib/archboot/installer/mountpoints.sh @@ -453,14 +453,14 @@ _mkfs() { fi #shellcheck disable=SC2181 if [[ -n "${_SWAP_ERROR}" ]]; then - _dialog --title " ERROR " --no-mouse --infobox "Creating swap: mkswap ${1}" 0 0 + _dialog --title " ERROR " --no-mouse --infobox "Creating swap: mkswap ${1}" 3 60 sleep 5 return 1 fi fi swapon "${1}" &>"${_LOG}" || _SWAP_ERROR=1 if [[ -n "${_SWAP_ERROR}" ]]; then - _dialog --title " ERROR " --no-mouse --infobox "Activating swap: swapon ${1}" 0 0 + _dialog --title " ERROR " --no-mouse --infobox "Activating swap: swapon ${1}" 3 60 sleep 5 return 1 fi @@ -471,7 +471,7 @@ _mkfs() { [[ "${2}" == "${fs}" ]] && _KNOWNFS=1 && break done if [[ ${_KNOWNFS} -eq 0 ]]; then - _dialog --title " ERROR " --no-mouse --infobox "Unknown fstype ${2} for ${1}" 0 0 + _dialog --title " ERROR " --no-mouse --infobox "Unknown fstype ${2} for ${1}" 3 60 sleep 5 return 1 fi