Skip to content

Commit

Permalink
fix: disable swap after creating to prevent some live environments fr…
Browse files Browse the repository at this point in the history
…om using the swap immediately (fixes #57)
  • Loading branch information
oddlama committed Oct 5, 2022
1 parent 8919c61 commit 6c1a7e8
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions scripts/functions.sh
Original file line number Diff line number Diff line change
Expand Up @@ -411,6 +411,9 @@ function disk_format() {
mkswap "$device" \
|| die "Could not format device '$device' ($id)"
fi

# Try to swapoff in case the system enabled swap automatically
swapoff "$device" &>/dev/null
;;
'ext4')
if [[ -v "arguments[label]" ]]; then
Expand Down

0 comments on commit 6c1a7e8

Please sign in to comment.