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 E4C9B138330 for ; Wed, 31 Aug 2016 21:24:32 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id C2B8221C038; Wed, 31 Aug 2016 21:24:24 +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 E1400E0A86 for ; Wed, 31 Aug 2016 21:24:23 +0000 (UTC) Received: from [46.246.33.13] (anon-33-13.vpn.ipredator.se [46.246.33.13]) (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 0F2643408EC for ; Wed, 31 Aug 2016 21:24:21 +0000 (UTC) Subject: Re: [gentoo-dev] rfc: /etc/hostname on gentoo To: gentoo-dev@lists.gentoo.org References: <20160822155808.GA16219@whubbs1.gaikai.biz> <20160828181530.GA29657@linux1.gaikai.biz> From: Daniel Campbell Message-ID: <54e3996b-6667-12ad-7a43-e08fcf95d1b5@gentoo.org> Date: Wed, 31 Aug 2016 14:24:08 -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: <20160828181530.GA29657@linux1.gaikai.biz> Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="q22jrIgFL9hBNM604FB2PQWVcx8GchWct" X-Archives-Salt: 834465ee-4001-42b6-83cc-c1bda8924f59 X-Archives-Hash: 8148f123c4f93ba3818d602795004271 This is an OpenPGP/MIME signed message (RFC 4880 and 3156) --q22jrIgFL9hBNM604FB2PQWVcx8GchWct Content-Type: multipart/mixed; boundary="AniSKB6jmSLhKmMJXD2uik8rptP6GTaNP" From: Daniel Campbell To: gentoo-dev@lists.gentoo.org Message-ID: <54e3996b-6667-12ad-7a43-e08fcf95d1b5@gentoo.org> Subject: Re: [gentoo-dev] rfc: /etc/hostname on gentoo References: <20160822155808.GA16219@whubbs1.gaikai.biz> <20160828181530.GA29657@linux1.gaikai.biz> In-Reply-To: <20160828181530.GA29657@linux1.gaikai.biz> --AniSKB6jmSLhKmMJXD2uik8rptP6GTaNP Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable On 08/28/2016 11:15 AM, William Hubbs wrote: > Ok all, >=20 > here is what openrc-0.22 is going to do in terms of setting the host > name. >=20 > If /etc/hostname exists, the first word of that file will be used as th= e > host name. > Otherwise, if the value is set in /etc/conf.d/hostname it will be used.= > Otherwise, OpenRC will not touch the hostname. >=20 > One advantage of this, on Linux, is that you can set your host name in > the kernel and this setting will be respected. >=20 > Also, this means the script by default can run in containers if they > allow overriding the hostname inside the container. >=20 > William >=20 I didn't see anyone else reply to this so I will. I think that's the best way of supporting both without requiring (much) putzing around. If a user changes /etc/conf.d/hostname and it doesn't change, the fix would be to delete (or update) /etc/hostname and all is good in the world again= =2E Supporting kernel-level hostname as a side effect is even better. No complaints here! --=20 Daniel Campbell - Gentoo Developer OpenPGP Key: 0x1EA055D6 @ hkp://keys.gnupg.net fpr: AE03 9064 AE00 053C 270C 1DE4 6F7A 9091 1EA0 55D6 --AniSKB6jmSLhKmMJXD2uik8rptP6GTaNP-- --q22jrIgFL9hBNM604FB2PQWVcx8GchWct Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- iQIcBAEBCAAGBQJXx0r8AAoJEAEkDpRQOeFwTowP/jnSUM4hZNDWafFMfZRZyDzI tk9v5xaK7M865ZVi+sTT9AyUkEckeiMZQyN7cfF8myiQCbfbRNrZ467q3KwnNUQM oop0WgDf8LzxbaBgknnlwMu5Zse+1CB+bGrK0tXd9YwP++dtMC/+zQNQdG2Ljxod +rThs9Qv6SPzzXJvK16fIHwu2LL5yUOAbqG8Q7v1y03w+va/l1R5aOxxP7zcR3Xn U6Yz+AHivvPXbgucMiVar5ilUmJCqn7cbv29fG+LwYyTjwdmzhIzj56rOIPS6+Mr YqmIPl6YKv4POgrW/rvaxvsXhTKNEv8MIJusryoBAwm81AddsFPiY5SgXkBaW+tk kRcUpJfCHxVoRyXLlppNb4dg0qO76r9S/hpY3WXq+JjLCP0Mxtkrud7kHE65OptA 1jQHM6DQzsiRN5Zy1pTr4EOZXvatSNP25QZpjUdcds28f2Qxw4qtUUAaAXzvTjRa jrgcC6JifPhrIYudeAn4jz7qVfCOxnSiVff5zeG5HFAZW5kp5HFInvlepEFpioOO B158qUbR21T9V8cQLmLzY/bGiZMMXKK/iUaJIpywxN6QfzkSrTOZAtdcD0Mb9mL/ ZIdVS+4kCTeUyeiRqaKs1eVZfnM0/swlGw97CBwhJM1W3diEeUJhlRyovpVZIlpq Ao6RscY2tgWuPEO2prwQ =A5GR -----END PGP SIGNATURE----- --q22jrIgFL9hBNM604FB2PQWVcx8GchWct--