FS#17742 - [networkmanager] modifies /etc/hosts and hostname
Attached to Project:
Arch Linux
Opened by Cody Maloney (maloney) - Friday, 08 January 2010, 05:22 GMT
Last edited by Jan de Groot (JGC) - Saturday, 30 January 2010, 18:52 GMT
Opened by Cody Maloney (maloney) - Friday, 08 January 2010, 05:22 GMT
Last edited by Jan de Groot (JGC) - Saturday, 30 January 2010, 18:52 GMT
|
Details
Description:
After the upgrade to 0.7.998-1 Network Manager adds a line to /etc/hosts This wouldn't be a problem (although would be annoying), but it gets rid of the custom hostname for the machine, forcing it to be localhost.localdomain which then causes SLiM login manager to fail to display text when starting as well as changing the host name that shows up on the command line. I verified this was network manager and not the other packages by disabling the networkmanager daemon, which caused the line to stop being added to my /etc/hosts Here's the line that's added: 127.0.0.1 localhost.localdomain localhost Steps to reproduce: Upgrade to networkmanager 0.7.998-1 Have Networkmanager in your daemons array Have Slim started as an rc.conf daemon (may not be required, but it's how mine is setup) |
This task depends upon
Closed by Jan de Groot (JGC)
Saturday, 30 January 2010, 18:52 GMT
Reason for closing: Fixed
Additional comments about closing: 0.7.999-2 should fix this issue. This version has been patched to do hostname setting only in case it's configured from the keyfile settings plugin, all automatic lookups are disabled.
Saturday, 30 January 2010, 18:52 GMT
Reason for closing: Fixed
Additional comments about closing: 0.7.999-2 should fix this issue. This version has been patched to do hostname setting only in case it's configured from the keyfile settings plugin, all automatic lookups are disabled.
[main]
plugins=keyfile
[keyfile]
hostname = <insert_hostname>
SLiM didn't start working immediately after that. It would display and let me log in (and succeed at doing so) but kept failing to start an X server for my session (gave an error about a fbcon module). Adding myself to the video group fixed that (not sure if that is related at all, but figured I might as well note possible side effects)
don't forget to stop networkmanager first before doing modification to /etc/hosts to be like it was and also use the original nm-system-settings.conf
fred ~ $ yaourt -Si networkmanager
Dépôt : testing
Nom : networkmanager
Version : 0.7.998-2
My solution does not fix the problem, but restore hostname just after the connection came up!
place attached file in /etc/NetworkManager/dispatcher.d/ then set executable flag (chmod)
:)
fred ~ $ sudo pacman -Si networkmanager
Dépôt : testing
Nom : networkmanager
Version : 0.7.999-1
URL : http://www.gnome.org/projects/NetworkManager/
Licences : GPL
Groupes : --
Fournit : libnetworkmanager=0.7.999
I rebooted after setting networkmanager by default in my /etc/rc.conf file. I hope this bug is "dead"