mirror of
https://github.com/systemd/systemd-stable.git
synced 2025-01-10 01:17:44 +03:00
semaphoreci: run dhclient manually on setup
For some reason the guest container stopped having its network interface configured. Run the dhcp client manually.
This commit is contained in:
parent
93de997d12
commit
9a6260b194
@ -36,8 +36,11 @@ create_container() {
|
|||||||
# enable source repositories so that apt-get build-dep works
|
# enable source repositories so that apt-get build-dep works
|
||||||
sudo lxc-attach -n "$CONTAINER" -- sh -ex <<EOF
|
sudo lxc-attach -n "$CONTAINER" -- sh -ex <<EOF
|
||||||
sed 's/^deb/deb-src/' /etc/apt/sources.list >> /etc/apt/sources.list.d/sources.list
|
sed 's/^deb/deb-src/' /etc/apt/sources.list >> /etc/apt/sources.list.d/sources.list
|
||||||
# wait until online
|
# We might attach the console too soon
|
||||||
while [ -z "\$(ip route list 0/0)" ]; do sleep 1; done
|
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 -q --allow-releaseinfo-change update
|
||||||
apt-get -y dist-upgrade
|
apt-get -y dist-upgrade
|
||||||
apt-get install -y eatmydata
|
apt-get install -y eatmydata
|
||||||
|
Loading…
Reference in New Issue
Block a user