On Mon, Aug 22, 2016 at 12:11 PM, M. J. Everitt <m.j.ever...@iee.org> wrote:
> On 22/08/16 16:58, William Hubbs wrote:
>>
>> it looks like app-emulation/docker expects /etc/hostname to exist.
>>
>> On Gentoo, this file does not exist, so I'm wondering how we can make it
>> exist?
>>
>> I know in OpenRC I can read it and use the value there as the hostname
>> instead of /etc/conf.d/hostname if it exists,but I'm not sure whether
>> OpenRC should populate /etc/hostname if it does not exist or whether
>> something else should do that.
>>
> Sym-link it perhaps? Making another file could make synchronisation, etc
> a headache....
>

Systemd has generally been going the route of symlinking files like
these to files in /run.  That might be an approach that would work for
openrc as well.  It also eliminates giving write-access to /etc to
things like dhcpd.

-- 
Rich

Reply via email to