Comment 8 for bug 712031

Revision history for this message
Steve Langasek (vorlon) wrote : Re: [Bug 712031] Re: alip: can't look up localhost.localdomain

On Wed, Feb 16, 2011 at 05:33:43AM -0000, Tom Gall wrote:

> * 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.

Well, phooey. Yes, we don't want to get into writing a bunch of new code to
support this, given how far off live-build mainline we already are.

> 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.

#2 is the better option; that way we can use the same code path for all of
our images, whether or not they include network-manager.

--
Steve Langasek Give me a lever long enough and a Free OS
Debian Developer to set it on, and I can move the world.
Ubuntu Developer http://www.debian.org/
<email address hidden> <email address hidden>