fix: disable swap after creating to prevent some live environments from using the swap immediately (fixes #57)
This commit is contained in:
parent
8919c61568
commit
6c1a7e846b
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue