NetworkManager/man
Thomas Haller 15177a34be dns: change behavior for "rc-manager=symlink" to preserve "/etc/resolv.conf" as file
The purpose of "rc-manager=symlink" is so that the administrator can point
the "/etc/resolv.conf" as a symlink to a certain file, and thus indicating
that a certain component is responsible to manage resolv.conf, while others
should stay away from it.
For example, systemd-resolved never touches "/etc/resolv.conf", but
expects the admin to setup the symlink appropriately. It also recognizes
whether the symlink points to it's own resolv.conf in /run or to another
component.

Previously, "rc-manager=symlink" would always replace a regular file
with a symlink to "/var/run/NetworkManager/resolv.conf". Only if
"/etc/resolv.conf" is already a symlink somewhere else, NM would not
touch it. This with the exception that if "/etc/resolv.conf" points to
"/var/run/NetworkManager/resolv.conf", it would replace the symlink
with the same link to raise inotify events.

Change behavior so if "/etc/resolv.conf" is already a regular file, keep
it as file.
This means, if you have multiple components that don't care, everybody
can write the "/etc/resolv.conf" (as file) and there is no clear
expressed responsibility.
It was wrong that NetworkManager would convert the file to a symlink,
this should be reserved to the admin. Instead, NetworkManager should
accept that the intent is unspecified and preserve the regular file.
It's up to the admin to replace the symlink to somewhere else (to keep
NM off), or to point it to "/var/run/NetworkManager/resolv.conf", to show
the explicit intent.

The wrong behavior causes dangling symlinks when somebody disables
NetworkManager for good.

https://bugzilla.redhat.com/show_bug.cgi?id=1367551
2017-02-14 17:45:55 +01:00
..
common.ent.in dns: change behavior for "rc-manager=symlink" to preserve "/etc/resolv.conf" as file 2017-02-14 17:45:55 +01:00
NetworkManager.conf.xml dns: change behavior for "rc-manager=symlink" to preserve "/etc/resolv.conf" as file 2017-02-14 17:45:55 +01:00
NetworkManager.xml man: use <filename> to mark file names 2016-11-11 14:42:27 +01:00
nm-online.xml man: turn the manual page cross-references into links 2016-06-21 18:40:13 +02:00
nm-settings-ifcfg-rh.xsl man: add unsupported settings to the list in nm-settings-ifcfg-rh page 2016-12-15 15:20:19 +01:00
nm-settings-keyfile.xsl man: turn the manual page cross-references into links 2016-06-21 18:40:13 +02:00
nm-settings.xsl man: replace libnm-util reference with libnm-core in nm-settings page 2016-12-15 15:36:57 +01:00
nmcli-examples.xml man: turn the manual page cross-references into links 2016-06-21 18:40:13 +02:00
nmcli.xml man: minor fix to nmcli.xml 2017-01-09 18:40:21 +01:00
nmtui.1.in man: update version number and dates in manual pages 2016-03-09 10:11:27 +01:00
nmtui.xml man: turn the manual page cross-references into links 2016-06-21 18:40:13 +02:00