diff options
author | Luca Boccassi <bluca@debian.org> | 2022-04-05 22:23:49 +0100 |
---|---|---|
committer | Luca Boccassi <bluca@debian.org> | 2022-04-06 00:24:11 +0100 |
commit | 9a6260b19460aca3b343ac4485be93eeb85d13b4 (patch) | |
tree | 4ba420cd6b0bb41db6c462de2b304daa5a37a24d /.semaphore | |
parent | 93de997d1249830cba73cb6c07f1e8dd54776fa0 (diff) | |
download | systemd-9a6260b19460aca3b343ac4485be93eeb85d13b4.tar.gz |
semaphoreci: run dhclient manually on setup
For some reason the guest container stopped having its
network interface configured. Run the dhcp client manually.
Diffstat (limited to '.semaphore')
-rwxr-xr-x | .semaphore/semaphore-runner.sh | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/.semaphore/semaphore-runner.sh b/.semaphore/semaphore-runner.sh index 7ed6773213..80fd9b76f7 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 <<EOF sed 's/^deb/deb-src/' /etc/apt/sources.list >> /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 |