GNOME Bugzilla – Bug 727407
hostnamed and /etc/hostname support outside of ifupdown
Last modified: 2016-09-02 00:11:45 UTC
Discussions with the Debian NetworkManager maintainer raised the issue that integration with /etc/hostname currently lives in the ifupdown plugin. Ideally, with systemd pushing all distros to use /etc/hostname, and providing the hostnamed interface, NetworkManager should use either hostnamed or a fallback to /etc/hostname without needing to use the ifupdown plugin. This would allow disabling the ifupdown plugin without breaking hostname support.
ifcfg-rh uses /etc/hostname now too, but yeah, that should be made generic. There's an outdated branch for using hostnamed instead of writing to /etc/hostname directly in danw/hostnamed.
this is fixed a while ago. Handling of hostname moved from the settings plugin to NMSettings. Also, hostnamed is supported as one of several options. There were many changes there, so I am not going to hunt down for a particular BZ which fixed this. However, the functionality is now all in https://cgit.freedesktop.org/NetworkManager/NetworkManager/tree/src/settings/nm-settings.c