Revert "sys-apps/systemd: Drop the resolv.conf workaround"

This reverts commit c414b38c7c56dafb05a86040443c634763527f05.
The real DNS server IP addresses should be in /etc/resolve.conf and not
just 127.0.0.53 because all cases that bind-mount /etc/resolve.conf
into a new network namespace can't reach the loopback interface that
resolved is listening on.
This commit is contained in:
Kai Lüke 2020-10-09 14:57:29 +09:00
parent 19f8caf46b
commit cd71c131dd

View File

@ -179,6 +179,14 @@ src_unpack() {
src_prepare() {
# Flatcar: We don't have separate patches, so no patching code here.
#
# Flatcar: Use the resolv.conf managed by systemd-resolved.
# This shouldn't be necessary anymore. Added because of a bug
# https://github.com/systemd/systemd/issues/3826, which is
# apparently resolved in
# https://github.com/systemd/systemd/pull/5276.
sed -i -e 's,/run/systemd/resolve/stub-resolv.conf,/run/systemd/resolve/resolv.conf,' tmpfiles.d/etc.conf.m4 || die
default
}