Skip to content

Commit 05d7b79

Browse files
authored
add swapoff to reboot phase
1 parent 51d347d commit 05d7b79

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/nixos-anywhere.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -600,6 +600,7 @@ if [[ ${phases[reboot]} == 1 ]]; then
600600
if command -v zpool >/dev/null && [ "\$(zpool list)" != "no pools available" ]; then
601601
# we always want to export the zfs pools so people can boot from it without force import
602602
umount -Rv /mnt/
603+
swapoff -a
603604
zpool export -a || true
604605
fi
605606
nohup sh -c 'sleep 6 && reboot' >/dev/null &

0 commit comments

Comments
 (0)