Skip to content

Commit

Permalink
Update src/nixos-anywhere.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
Mic92 authored Feb 1, 2025
1 parent da850f4 commit 9ac6b3d
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/nixos-anywhere.sh
Original file line number Diff line number Diff line change
Expand Up @@ -625,9 +625,8 @@ 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/
if [[ ${swapoff} == "y" ]]; then
swapoff -a
fi
# in case our zpool has a swap device
swapoff -a
zpool export -a || true
fi
nohup sh -c 'sleep 6 && reboot' >/dev/null &
Expand Down

0 comments on commit 9ac6b3d

Please sign in to comment.