#!/bin/env bash set -euxo pipefail CNAME="$1" timeout 30 bash -c "until incus exec $CNAME -- ping -c1 google.com &>/dev/null; do sleep 1; done"