Skip to content

Commit 4d55f9e

Browse files
committed
Fully detach backgrounded reboot to prevent hanging SSH session
1 parent 837dd09 commit 4d55f9e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/nixos-anywhere.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -789,7 +789,7 @@ nixosReboot() {
789789
swapoff -a
790790
zpool export -a || true
791791
fi
792-
nohup sh -c 'sleep 6 && reboot' >/dev/null &
792+
nohup sh -c 'sleep 6 && reboot' >/dev/null 2>&1 &
793793
SSH
794794
795795
step Waiting for the machine to become unreachable due to reboot

0 commit comments

Comments
 (0)