[Pkg-sysvinit-devel] Bug#628140: Bug#628140: initscripts: /etc/init.d/hostname.sh fails if /etc/hostname not present
Kel Modderman
kel at otaku42.de
Sat May 28 08:53:11 UTC 2011
On Sat, 28 May 2011 12:52:45 AM Edgar Fuss wrote:
> Package: initscripts
> Version: 2.88dsf-13.1
> Severity: normal
> Tags: patch
>
> If /etc/hostname is not present, /etc/init.d/hostname.sh will pick up the
> kernel supplied hostname ``(none)'' and try to set this via hostname(1),
> wich fails. The obvious fix is to treat a hostname of ``(none)'' as, ehm,
> none, e.g. empty. This will give you a hostname of ``localhost''.
I tend to agree that `localhost' makes more sense than `(none)' in the
fallback case, but I'm not sure this is the correct place to change this.
A search led me to: lkml.org/lkml/2011/4/11/14
What do you think about this? If the discussion there leads us to believe the
kernel is the correct place for this bug to be fixed, this bug should be
reassigned.
Thanks, Kel.
More information about the Pkg-sysvinit-devel
mailing list