77: wait for machine to be shutdown after deploy r=Lassulus a=Mic92



Co-authored-by: Jörg Thalheim <joerg@thalheim.io>
This commit is contained in:
bors[bot] 2023-03-05 10:44:49 +00:00 committed by GitHub
commit ad954defb3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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