mirror of
https://github.com/nix-community/nixos-anywhere.git
synced 2024-09-11 08:35:24 +03:00
wait for machine to be shutdown after deploy
This commit is contained in:
parent
b7e335a5f8
commit
5be3e00d57
@ -321,3 +321,8 @@ nixos-install --no-root-passwd --no-channel-copy --system "$nixos_system"
|
||||
# This makes integration into scripts easier
|
||||
nohup bash -c '${maybe_reboot}' >/dev/null &
|
||||
SSH
|
||||
|
||||
# wait for machine to become unreachable due to reboot
|
||||
if [[ -n ${maybe_reboot} ]]; then
|
||||
while timeout_ssh_ -- exit 0; do sleep 1; done
|
||||
fi
|
||||
|
Loading…
Reference in New Issue
Block a user