fix: disable swap after creating to prevent some live environments from using the swap immediately (fixes #57)

This commit is contained in:
oddlama 2022-10-05 15:47:48 +02:00
parent 8919c61568
commit 6c1a7e846b
No known key found for this signature in database
GPG Key ID: 14EFE510775FE39A
1 changed files with 3 additions and 0 deletions

View File

@ -411,6 +411,9 @@ function disk_format() {
mkswap "$device" \ mkswap "$device" \
|| die "Could not format device '$device' ($id)" || die "Could not format device '$device' ($id)"
fi fi
# Try to swapoff in case the system enabled swap automatically
swapoff "$device" &>/dev/null
;; ;;
'ext4') 'ext4')
if [[ -v "arguments[label]" ]]; then if [[ -v "arguments[label]" ]]; then