From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 1CF7F13832E for ; Mon, 22 Aug 2016 17:04:19 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id B1EE321C17B; Mon, 22 Aug 2016 17:04:09 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id B28DE21C122 for ; Mon, 22 Aug 2016 17:04:08 +0000 (UTC) Received: from localhost (unknown [100.42.103.5]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) (Authenticated sender: williamh) by smtp.gentoo.org (Postfix) with ESMTPSA id 4EC763404A5 for ; Mon, 22 Aug 2016 17:04:07 +0000 (UTC) Date: Mon, 22 Aug 2016 12:03:42 -0500 From: William Hubbs To: gentoo-dev@lists.gentoo.org Subject: Re: [gentoo-dev] rfc: /etc/hostname on gentoo Message-ID: <20160822170342.GA16554@whubbs1.gaikai.biz> Mail-Followup-To: gentoo-dev@lists.gentoo.org References: <20160822155808.GA16219@whubbs1.gaikai.biz> <57BB2439.4050408@iee.org> Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-dev@lists.gentoo.org Reply-to: gentoo-dev@lists.gentoo.org MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="y0ulUmNC+osPPQO6" Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.24 (2015-08-30) X-Archives-Salt: 226f0630-45ea-471d-a19e-1f0f75bf0467 X-Archives-Hash: 7dcd81e70150efd3347f7da18d08e00e --y0ulUmNC+osPPQO6 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable 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 wro= te: > > 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.... > > >=20 > 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 --y0ulUmNC+osPPQO6 Content-Type: application/pgp-signature; name="signature.asc" Content-Description: Digital signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v2 iEYEARECAAYFAle7MGgACgkQblQW9DDEZTg8ZACgizkWJWdtosRqMFlN/NrhjlX7 yZYAnRt6O3CxEK506egrIa9l3wVn0kXG =Bd8/ -----END PGP SIGNATURE----- --y0ulUmNC+osPPQO6--