From 05d7b792a5e4cb03e872a8d936d544bcf358fd24 Mon Sep 17 00:00:00 2001 From: TilCreator Date: Tue, 5 Nov 2024 12:31:39 +0100 Subject: [PATCH] add swapoff to reboot phase --- src/nixos-anywhere.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/src/nixos-anywhere.sh b/src/nixos-anywhere.sh index 644ab69a..975b53c0 100755 --- a/src/nixos-anywhere.sh +++ b/src/nixos-anywhere.sh @@ -600,6 +600,7 @@ if [[ ${phases[reboot]} == 1 ]]; then if command -v zpool >/dev/null && [ "\$(zpool list)" != "no pools available" ]; then # we always want to export the zfs pools so people can boot from it without force import umount -Rv /mnt/ + swapoff -a zpool export -a || true fi nohup sh -c 'sleep 6 && reboot' >/dev/null &