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 44D2B138330 for ; Tue, 23 Aug 2016 06:40:14 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 601B821C080; Tue, 23 Aug 2016 06:40:02 +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 C4A0421C043 for ; Tue, 23 Aug 2016 06:40:00 +0000 (UTC) Received: from [46.246.47.167] (unknown [46.246.47.167]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) (Authenticated sender: zlg) by smtp.gentoo.org (Postfix) with ESMTPSA id E9B9A33FE7D for ; Tue, 23 Aug 2016 06:39:58 +0000 (UTC) Subject: Re: [gentoo-dev] rfc: /etc/hostname on gentoo To: gentoo-dev@lists.gentoo.org References: <20160822155808.GA16219@whubbs1.gaikai.biz> <1471894124.32381.0.camel@gentoo.org> <20160822220925.GB18116@whubbs1.gaikai.biz> From: Daniel Campbell Message-ID: Date: Mon, 22 Aug 2016 23:39:52 -0700 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.2.0 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 In-Reply-To: <20160822220925.GB18116@whubbs1.gaikai.biz> Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="AedLHko7Soh8X1PEtOXbdkHQ48ljTwT4I" X-Archives-Salt: 62aa85b9-6c6d-4a34-a05e-6ccf7abb5b82 X-Archives-Hash: 624d8cb01032abc7b1f125845319e57d This is an OpenPGP/MIME signed message (RFC 4880 and 3156) --AedLHko7Soh8X1PEtOXbdkHQ48ljTwT4I Content-Type: multipart/mixed; boundary="cNlwhrxmODErdTECOHPlpaXdX6AU7eDVn" From: Daniel Campbell To: gentoo-dev@lists.gentoo.org Message-ID: Subject: Re: [gentoo-dev] rfc: /etc/hostname on gentoo References: <20160822155808.GA16219@whubbs1.gaikai.biz> <1471894124.32381.0.camel@gentoo.org> <20160822220925.GB18116@whubbs1.gaikai.biz> In-Reply-To: <20160822220925.GB18116@whubbs1.gaikai.biz> --cNlwhrxmODErdTECOHPlpaXdX6AU7eDVn Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable On 08/22/2016 03:09 PM, William Hubbs wrote: > On Mon, Aug 22, 2016 at 09:28:44PM +0200, Hans de Graaff wrote: >> On Mon, 2016-08-22 at 10:58 -0500, William Hubbs wrote: >>> All, >>> >>> it looks like app-emulation/docker expects /etc/hostname to exist. >> >> Is there a bug for this? docker seems to work fine for me on a system >> without this file present. >=20 > Ok, now for the clarification. >=20 > Someone here at the office was wanting a cross-platform way to find out= > the hostname of the host the container is running on inside the > container. We made another suggestion for that, so forget about the > docker angle on this for now. >=20 > But, /etc/hostname is a multi-distro standard for where the hostname is= > located, so I would like to make openrc prefer it over the setting in > /etc/conf.d/hostname if it exists.A >=20 > I suppose whether we populate it by default might be a separate > question. >=20 > William >=20 Changing the way one configures the hostname because one or a few packages A) need this knowledge, and B) hardcode /etc/hostname is not worth changing the canonical way to update it and getting people to change their habits. It makes a bit more sense to rely on previous configuration (/etc/conf.d/hostname) and write a tiny 'script' that populates /etc/hostname. bash could do it (naively) in two lines: source /etc/conf.d/hostname echo "$hostname" > /etc/hostname The 'multi-distro standard' is du jour at best and imo not a compelling reason to follow. --=20 Daniel Campbell - Gentoo Developer OpenPGP Key: 0x1EA055D6 @ hkp://keys.gnupg.net fpr: AE03 9064 AE00 053C 270C 1DE4 6F7A 9091 1EA0 55D6 --cNlwhrxmODErdTECOHPlpaXdX6AU7eDVn-- --AedLHko7Soh8X1PEtOXbdkHQ48ljTwT4I Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- iQIcBAEBCAAGBQJXu++4AAoJEAEkDpRQOeFwFmgP/1s5xckiCCqyv1GFEO4SgFAB qM1IKtDxxkViKnTLLMLg338gQtY3nU4QgI7m7ujNU2jTdRWo63gR6IIX6PLU5IxD 7KFYNZmQ77pgPFza+34qgXgceFiiqE2a5fZdH38B8APbKypEyZ6YDBRHF7b539Tf 6hxtBWPa9J0Bul10hTg/s79apUF1HLOPkmxXf4BI1Y5DPV0H5P31qcYfH/yx3XP6 Vsr3ev2bhVQeJ4+ZCgC+7H6pBRHmFKQxM770ZpMcFjZVxMUKb3yBYny0zWVa8BiX pQShiEyIR6uVkfoOHjZxXZnq3kGICbI5BbMNVTN/sp7FXoV5krzOwEBSld9RbZLT qVo8wa/9q+uY3TRXk2q4NBQ33dbjC+7NtSFk3SIxgHSQd6J4JVoJnSiGM4AR9rWu xbhwxtgCF1RUNDd+p05KZ0s0iW5Hs+kw0aFszGMpf7rDXOTM7eFRUAfuTlze7ieC DyTcf87pAVey11qnCy9xcwnZbp2nQ832CluuGOFlhnY0WiSFYA8R9EA7Op4NwooB 9L1i5UiMRsVrWo9MAWqlAXYkZpjH3m+JValyrh0ai20dzeqevC4HxUiu/IT4ror5 8YdKizqiyfEibEYnYe0pkqFqFviA1bR3xAvxhUgZi5uJMibrVN6F+CM3/U1fhy5a lEAUWYPlIO8h5c43/eMi =ZjEf -----END PGP SIGNATURE----- --AedLHko7Soh8X1PEtOXbdkHQ48ljTwT4I--