| Summary: | net-misc/networkmanager changes hostname when /etc/hosts is non-writable | ||
|---|---|---|---|
| Product: | Gentoo Linux | Reporter: | Robert Coffree <rcoffree> |
| Component: | Current packages | Assignee: | Gentoo Linux Gnome Desktop Team <gnome> |
| Status: | RESOLVED TEST-REQUEST | ||
| Severity: | normal | CC: | leho, qiaomuf |
| Priority: | High | ||
| Version: | unspecified | ||
| Hardware: | AMD64 | ||
| OS: | Linux | ||
| Whiteboard: | |||
| Package list: | Runtime testing required: | --- | |
| Attachments: | Won't fallback when failed to update etc hosts | ||
|
Description
Robert Coffree
2010-11-15 14:12:38 UTC
In the case where /etc is writable, the hosts file is updated with the line: addres.x.y.x hostname #added by network mangler But, if this fails then the hostname is changed (BAD). Created attachment 254715 [details, diff]
Won't fallback when failed to update etc hosts
Here's a patch that could solve your problem, but I'm not sure if this is wanted by all users.
Why not make it so that NM doesn't fallback to localhost.localdomain *if* /etc/hosts already has the proper hostname entry? I believe the problem is that some distro's want this, but some definitely don't. The hostname is usually only set once, and only by the start up scripts, IHMO. (In reply to comment #3) > Why not make it so that NM doesn't fallback to localhost.localdomain *if* > /etc/hosts already has the proper hostname entry? > (In reply to comment #3) > Why not make it so that NM doesn't fallback to localhost.localdomain *if* > /etc/hosts already has the proper hostname entry? > I've already asked about it in NM mail list. Let's see whether upstream will make any change. Is this still valid with the current release? (In reply to Pavel Šimerda from comment #6) > Is this still valid with the current release? |