Gentoo Archives: gentoo-user

From: Mick <michaelkintzios@×××××.com>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] hostname problem
Date: Sun, 02 Oct 2016 11:56:18
Message-Id: 1930791.QPL2IQI53G@dell_xps
In Reply to: Re: [gentoo-user] hostname problem by Hinnerk van Bruinehsen
1 On Sunday 02 Oct 2016 13:47:10 Hinnerk van Bruinehsen wrote:
2 > On Sun, Oct 02, 2016 at 07:41:48AM -0400, Philip Webb wrote:
3 > > I did a big system update yesterday ( 52 pkgs ), incl Net-tools Dhcpcd ,
4 > >
5 > > & on restarting today found that hostname is not being set :
6 > > root:505 etc> echo $HOSTNAME
7 > > (none)
8 > >
9 > > Previously it was 'localhost'.
10 > >
11 > > The problem seems to be in /etc/init.d/hostname ,
12 > >
13 > > as the init process reports :
14 > > Setting hostname to localhost ...
15 > > /etc/init.d/hostname: line 24: hostname command not found
16 > > *Failed to set the hostname [!!]
17 > >
18 > > I've updated Openrc to the latest testing 0.22.1 , but no change.
19 > > I've also tried permutations of changes to /etc/init.d/hostname .
20 > >
21 > > Can anyone offer advice ?
22 >
23 > Check if sys-apps/net-tools has the "hostname" useflag enabled (it's enabled
24 > by default so you may encounter the fallout of a -* setup...)
25 >
26 > WKR
27 > Hinnerk
28
29 What does /etc/conf.d/hostname contain?
30
31 --
32 Regards,
33 Mick

Attachments

File name MIME type
signature.asc application/pgp-signature