Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

bots: Drop docker resolv.conf hack from Debian/Ubuntu images #9043

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion bots/images/debian-stable
2 changes: 1 addition & 1 deletion bots/images/debian-testing
9 changes: 0 additions & 9 deletions bots/images/scripts/debian.setup
Original file line number Diff line number Diff line change
Expand Up @@ -69,9 +69,6 @@ case "$RELEASE" in
;;

testing)
# https://tracker.debian.org/pcp not currently in testing
COCKPIT_DEPS="${COCKPIT_DEPS/libpcp3 /}"
COCKPIT_DEPS="${COCKPIT_DEPS/pcp /}"
COCKPIT_DEPS="${COCKPIT_DEPS} libblockdev-mdraid2 udisks2-lvm2"

# docker.io got removed from testing; use backports-version
Expand Down Expand Up @@ -137,12 +134,6 @@ systemctl disable apt-daily.service apt-daily.timer || true
echo "kernel.core_pattern=|/lib/systemd/systemd-coredump %P %u %g %s %t %c %e" > /etc/sysctl.d/50-coredump.conf
printf 'DefaultLimitCORE=infinity\n' >> /etc/systemd/system.conf

# HACK: docker fails without /etc/resolv.conf
# https://bugzilla.redhat.com/show_bug.cgi?id=1448331
mkdir -p /etc/systemd/system/docker.service.d
printf "[Service]\nExecStartPre=/bin/sh -c 'echo -n >> /etc/resolv.conf'\n" > /etc/systemd/system/docker.service.d/resolv.conf
systemctl daemon-reload

# HACK: we need to restart it in case aufs-dkms was installed after docker.io
# and thus docker.io auto-switches its backend
systemctl restart docker || journalctl -u docker
Expand Down
2 changes: 1 addition & 1 deletion bots/images/ubuntu-1604
2 changes: 1 addition & 1 deletion bots/images/ubuntu-stable