Skip to content

Commit

Permalink
add swapoff to reboot phase
Browse files Browse the repository at this point in the history
  • Loading branch information
TilCreator authored Nov 5, 2024
1 parent 51d347d commit 05d7b79
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/nixos-anywhere.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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 &
Expand Down

0 comments on commit 05d7b79

Please sign in to comment.