wait_until=$(date -d "now +$max_wait" +%s)
while ! ssh -n -l root "$tgt" systemctl is-system-running; do
echo "[$(date)] $tgt is still booting up (will wait until $(date -d "@$wait_until")."
wait_until=$(date -d "now +$max_wait" +%s)
while ! ssh -n -l root "$tgt" systemctl is-system-running; do
echo "[$(date)] $tgt is still booting up (will wait until $(date -d "@$wait_until")."