Skip to content

Commit bc653a8

Browse files
authored
Merge pull request #577 from ciderale/prevent-ssh-hang-on-reboot
Fully detach backgrounded reboot to prevent hanging SSH session
2 parents 837dd09 + 4d55f9e commit bc653a8

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)