I agree we should not replace /etc/resolv.conf if it's not already a symlink (although this will not be a common case, since by default it is a symlink managed by NetworkManager).
On Tue, Jul 28, 2020 at 11:07 am, Neal Gompa ngompa13@gmail.com wrote:
We can be smart here and replace the file when we detect that it's managed by NetworkManager. Otherwise we won't replace it.
Currently we actually don't touch it at all, which is not good because it means systemd-resolved will not be managing resolv.conf on upgraded systems. We should replace it with a symlink to systemd if (and only if) it's managed by NetworkManager.