Gentoo Archives: gentoo-user

From: Philip Webb <purslow@××××××××.net>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] hostname problem : solved
Date: Sun, 02 Oct 2016 12:07:00
Message-Id: 20161002120651.GA1706@ca.inter.net
In Reply to: Re: [gentoo-user] hostname problem by Hinnerk van Bruinehsen
1 161002 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 >> & on restarting today found that hostname is not being set :
5 >>
6 >> root:505 etc> echo $HOSTNAME
7 >> (none)
8 >>
9 >> Previously it was 'localhost'.
10 >> The problem seems to be in /etc/init.d/hostname ,
11 >> as the init process reports :
12 >>
13 >> Setting hostname to localhost ...
14 >> /etc/init.d/hostname: line 24: hostname command not found
15 >> *Failed to set the hostname [!!]
16 >>
17 > Check if sys-apps/net-tools has the "hostname" useflag enabled
18 > it's enabled by default so you may encounter the fallout of a -* setup.
19
20 Yes, that was it (red face). Thanks for the prompt reply.
21
22 --
23 ========================,,============================================
24 SUPPORT ___________//___, Philip Webb
25 ELECTRIC /] [] [] [] [] []| Cities Centre, University of Toronto
26 TRANSIT `-O----------O---' purslowatchassdotutorontodotca

Replies

Subject Author
Re: [gentoo-user] hostname problem : solved Philip Webb <purslow@××××××××.net>