Alternative connectivity checks for LXC (#6472)
This commit is contained in:
parent
dde882f9e5
commit
7433f7df0c
@ -1286,6 +1286,10 @@ EOF
|
||||
msg_ok "Network in LXC is reachable"
|
||||
break
|
||||
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
|
||||
msg_warn "No network yet in LXC (try $i/10) – waiting..."
|
||||
sleep 3
|
||||
|
Loading…
x
Reference in New Issue
Block a user