diff --git a/lib/lxc.sh b/lib/lxc.sh index 7c6d8b4..f3d23ef 100644 --- a/lib/lxc.sh +++ b/lib/lxc.sh @@ -178,7 +178,7 @@ _LXC_START_AND_WAIT() { # Wait for container to access the internet for j in $(seq 1 10); do - if lxc exec "$1" -- curl -s http://wikipedia.org > /dev/null 2>/dev/null; then + if lxc exec "$1" -- timeout 10 curl -s http://wikipedia.org > /dev/null 2>/dev/null; then break fi