mirror of
https://gitlab.archlinux.org/tpowa/archboot.git
synced 2024-09-20 03:50:37 +02:00
start adding SWAP file support
This commit is contained in:
parent
15b80ce10e
commit
1f69ee91e0
1 changed files with 1 additions and 3 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue