On Sun, Oct 02, 2016 at 07:41:48AM -0400, Philip Webb wrote: > I did a big system update yesterday ( 52 pkgs ), incl Net-tools Dhcpcd , > & on restarting today found that hostname is not being set : > > root:505 etc> echo $HOSTNAME > (none) > > Previously it was 'localhost'. > > The problem seems to be in /etc/init.d/hostname , > as the init process reports : > > Setting hostname to localhost ... > /etc/init.d/hostname: line 24: hostname command not found > *Failed to set the hostname [!!] > > I've updated Openrc to the latest testing 0.22.1 , but no change. > I've also tried permutations of changes to /etc/init.d/hostname . > > Can anyone offer advice ?
Check if sys-apps/net-tools has the "hostname" useflag enabled (it's enabled by default so you may encounter the fallout of a -* setup...) WKR Hinnerk