[Pkg-sysvinit-devel] [PATCH] uts: Make default hostname configurable, rather than always using "(none)"

Linus Torvalds torvalds at linux-foundation.org
Tue May 31 11:35:37 UTC 2011


On Tue, May 31, 2011 at 7:38 AM, Josh Triplett <josh at joshtriplett.org> wrote:
>
> The "hostname" tool falls back to setting the hostname to "localhost" if
> /etc/hostname does not exist.  Distribution init scripts have the same
> fallback.  However, if userspace never calls sethostname, such as when
> booting with init=/bin/sh, or otherwise booting a minimal system without
> the usual init scripts, the default hostname of "(none)" remains,
> unhelpfully appearing in various places such as prompts
> ("root@(none):~#") and logs.  Furthermore, "(none)" doesn't typically
> resolve to anything useful.

Ok, I'm fine with this. So Ack as far as I'm concerned.

Does this make most sense through the networking tree, or what?

              Linus



More information about the Pkg-sysvinit-devel mailing list