mirror of
https://github.com/nix-community/nixos-anywhere.git
synced 2024-10-26 16:30:39 +03:00
Merge #77
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:
commit
ad954defb3
@ -321,3 +321,8 @@ nixos-install --no-root-passwd --no-channel-copy --system "$nixos_system"
|
|||||||
# This makes integration into scripts easier
|
# This makes integration into scripts easier
|
||||||
nohup bash -c '${maybe_reboot}' >/dev/null &
|
nohup bash -c '${maybe_reboot}' >/dev/null &
|
||||||
SSH
|
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