From: Luca Boccassi Date: Tue, 5 Apr 2022 21:23:49 +0000 (+0100) Subject: semaphoreci: run dhclient manually on setup X-Git-Tag: v251-rc2~185^2~3 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=9a6260b19460aca3b343ac4485be93eeb85d13b4;p=thirdparty%2Fsystemd.git semaphoreci: run dhclient manually on setup For some reason the guest container stopped having its network interface configured. Run the dhcp client manually. --- diff --git a/.semaphore/semaphore-runner.sh b/.semaphore/semaphore-runner.sh index 7ed67732130..80fd9b76f77 100755 --- a/.semaphore/semaphore-runner.sh +++ b/.semaphore/semaphore-runner.sh @@ -36,8 +36,11 @@ create_container() { # enable source repositories so that apt-get build-dep works sudo lxc-attach -n "$CONTAINER" -- sh -ex <> /etc/apt/sources.list.d/sources.list -# wait until online -while [ -z "\$(ip route list 0/0)" ]; do sleep 1; done +# We might attach the console too soon +while ! systemctl --quiet --wait is-system-running; do sleep 1; done +# For some reason, it is necessary to run this manually or the interface won't be configured +# Note that we avoid networkd, as some of the tests will break it later on +dhclient apt-get -q --allow-releaseinfo-change update apt-get -y dist-upgrade apt-get install -y eatmydata