Force creation of /etc/resolv.conf symlink during installation

https://bugzilla.redhat.com/show_bug.cgi?id=1873856#c14
This commit is contained in:
Zbigniew Jędrzejewski-Szmek 2020-09-13 11:03:33 +02:00
parent 0345c83b50
commit 04b6e059f7

View File

@ -602,12 +602,12 @@ setfacl -Rnm g:wheel:rx,d:g:wheel:rx,g:adm:rx,d:g:adm:rx /var/log/journal/ &>/de
[ $1 -eq 1 ] || exit 0
# Create /etc/resolv.conf symlink
# We would also create it using tmpfiles, but let's do this here too
# before NetworkManager gets a chance. (systemd-tmpfiles invocation above
# Create /etc/resolv.conf symlink.
# We would also create it using tmpfiles, but let's do this here unconditionally
# too before NetworkManager gets a chance. (systemd-tmpfiles invocation above
# does not do this, because it's marked with ! and we don't specify --boot.)
# https://bugzilla.redhat.com/show_bug.cgi?id=1873856
ln -sv ../run/systemd/resolve/stub-resolv.conf /etc/resolv.conf
ln -fsv ../run/systemd/resolve/stub-resolv.conf /etc/resolv.conf
# We reset the enablement of all services upon initial installation
# https://bugzilla.redhat.com/show_bug.cgi?id=1118740#c23
@ -808,6 +808,8 @@ fi
- Update to latest stable release (a bunch of small network-related
fixes in systemd-networkd and socket handling, documentation updates,
a bunch of fixes for error handling).
- Also remove existing file when creating /etc/resolv.conf symlink
upon installation (#1873856 again)
* Wed Sep 2 2020 Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> - 246.4-1
- Update to latest stable version: a rework of how the unit cache mtime works