Comment 7 for bug 712031

Revision history for this message
Tom Gall (tom-gall) wrote :

From network-manager and specifically the Dec 20th 2010 debian/changelog entry :

  * Drop the patch to not write localhost.localdomain in /etc/hosts, it's no
    longer needed now that NM doesn't change the hosts file.
    - delete debian/patches/never-localhostlocaldomain.patch
    - update debian/patches/series

Even then the live helper conf_create.sh with it's " --hostname "$hostname" " setting is being ignored as well.

Rooting around in the live-build source this isn't surprising. If we want to support --hostname in live-build we'll need to add some code. Probably overkill at this point.

Fixing just the /etc/hosts file we can approach it one of two ways.
1) put the patch back into network-manager
2) drop an /etc/hosts file into the binary_local-includes directory of our live helper configs and that'll drop a known good file into place.

#2 might not be as bad of an option as you might think since /etc/hosts and /etc/hostname is really something updated / customized by things like oem-config, not to mention the Contents-armel.gz file does not list hosts as actually being owned by any package.