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 |