Skip to content

Commit

Permalink
Merge pull request #421 from TilCreator/fix_swap_on_zfs
Browse files Browse the repository at this point in the history
add swapoff to reboot phase
  • Loading branch information
Mic92 authored Nov 15, 2024
2 parents 51d347d + 05d7b79 commit 85d2dd6
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 85d2dd6

Please sign in to comment.