Alternative connectivity checks for LXC (#6472)

This commit is contained in:
Mariano D'Agostino 2025-08-02 12:52:21 -03:00 committed by GitHub
parent dde882f9e5
commit 7433f7df0c
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -1286,6 +1286,10 @@ EOF
msg_ok "Network in LXC is reachable" msg_ok "Network in LXC is reachable"
break break
fi fi
if pct exec "$CTID" -- curl -fsSIL --max-time 10 deb.debian.org >/dev/null 2>&1; then
msg_ok "Network in LXC is reachable"
break
fi
if [ "$i" -lt 10 ]; then if [ "$i" -lt 10 ]; then
msg_warn "No network yet in LXC (try $i/10) waiting..." msg_warn "No network yet in LXC (try $i/10) waiting..."
sleep 3 sleep 3