This commit is contained in:
Alexandre Aubin 2020-12-27 17:00:26 +01:00
parent 242564db77
commit 898595fb74
2 changed files with 4 additions and 4 deletions

View file

@ -83,9 +83,9 @@ function log_title()
{ {
cat << EOF | tee -a /proc/self/fd/3 cat << EOF | tee -a /proc/self/fd/3
${BOLD} ${BOLD}
=================================== ============================================
$1 $1
=================================== ============================================
${NORMAL} ${NORMAL}
EOF EOF
} }

View file

@ -109,7 +109,7 @@ _LXC_START_AND_WAIT() {
# Wait for container to start, we are using systemd to check this, # Wait for container to start, we are using systemd to check this,
# for the sake of brevity. # for the sake of brevity.
for j in $(seq 1 10); do for j in $(seq 1 10); do
if lxc exec "$1" -- /bin/bash -c "systemctl isolate multi-user.target" >/dev/null 2>/dev/null; then if lxc exec "$1" -- systemctl isolate multi-user.target >/dev/null 2>/dev/null; then
break break
fi fi
@ -125,7 +125,7 @@ _LXC_START_AND_WAIT() {
# Wait for container to access the internet # Wait for container to access the internet
for j in $(seq 1 10); do for j in $(seq 1 10); do
if lxc exec "$1" -- /bin/bash -c "! which wget > /dev/null 2>&1 || wget -q --spider http://debian.org"; then if lxc exec "$1" -- curl -s http://wikipedia.org > /dev/null 2>/dev/nul; then
break break
fi fi