On Mon, Aug 22, 2016 at 12:39:03PM -0400, Rich Freeman wrote:
> 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.

I'm not sure about putting this in /run for a couple of reasons:

The contents of this file is a setting, like /etc/conf.d/hostname, which
will be set by the user.

The other reason is, I don't know enough about containers to know if
they will have a separate /run from the host.

William

Attachment: signature.asc
Description: Digital signature

Reply via email to