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 6D16C138330 for ; Sun, 28 Aug 2016 18:15:50 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 1508DE0B41; Sun, 28 Aug 2016 18:15:42 +0000 (UTC) Received: from mail-oi0-f50.google.com (mail-oi0-f50.google.com [209.85.218.50]) (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 152CDE0AC9 for ; Sun, 28 Aug 2016 18:15:40 +0000 (UTC) Received: by mail-oi0-f50.google.com with SMTP id l203so171020333oib.1 for ; Sun, 28 Aug 2016 11:15:40 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=sender:date:from:to:subject:message-id:mail-followup-to:references :mime-version:content-disposition:in-reply-to:user-agent; bh=EvhWhFG4II7N6syv8inVvIl8qfb9hC7WqjG3Y+k7Jhg=; b=SB+KoiEt74SskKjMWou8jfYBKg1V969csz8oe8wiU9hyUzopPc3xz0eGHnObTQg7+9 mv5hALI9LK5XuPdox+f9xIDHRdnE1rU9o0O/xNEloH65viNw10wSHsn0t3Not8iSjIfZ G8j3MqA3emtbFKo8gSrJ5209qcLJwl2NGUhNd8zIkR/9BErEcuNQkcJIt///zMXDT1oy k0r/QGVBpH335bsrzwtm6UAN5fYpelcmHWwFhlzstS9PmA1wCcKfai5vz9Hm8SWzMpXh LGs0zsuvL+gyo+zBNVd9CqI2rs4RxB1x1nMypZmdbrG72m/x5jgtLKQnIygqMQ7iCYAB wJVA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:sender:date:from:to:subject:message-id :mail-followup-to:references:mime-version:content-disposition :in-reply-to:user-agent; bh=EvhWhFG4II7N6syv8inVvIl8qfb9hC7WqjG3Y+k7Jhg=; b=THai9Br+YQ+o1/ekZseELnHavfFUysdr3d2TG6ldnCd5vSgGJ3gEWPvWvl39KsJ3iZ fcPeUKjETjNvc/qu4DYry7diOkfnc0wAhlXQDi3+rTH3XTxqsc9gpJAHI8EdfggI2HUc aUNN96VUmRkX4ZBTB5J4sV+8zAajrh6bnPJeYvarzFuPHdiNVCat8/zft4Xd7Wj420Ez R+TkSlbdF7P5do9VRw498GEOOxh7u6iA/o6bYZ33ktAlaLK8hRdm/INzz0aGKP9D/YK8 j2DUbtprb4H2TCg0ipyaBH7s9Kjdyn7sLe/1uMN7gnZUwtiabuMEQ8PfkKi+vn7CuQy7 ew5w== X-Gm-Message-State: AE9vXwN4I8EmwAGnbUW45vxKuPQ/VUthB5TopPnLcCSOB7ISb913k9pJRR7JdsxPn9GU7A== X-Received: by 10.202.53.132 with SMTP id c126mr8300510oia.3.1472408140013; Sun, 28 Aug 2016 11:15:40 -0700 (PDT) Received: from linux1 (cpe-66-68-34-247.austin.res.rr.com. [66.68.34.247]) by smtp.gmail.com with ESMTPSA id w124sm13083045oiw.19.2016.08.28.11.15.39 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sun, 28 Aug 2016 11:15:39 -0700 (PDT) Sender: William Hubbs Received: (nullmailer pid 29945 invoked by uid 1000); Sun, 28 Aug 2016 18:15:30 -0000 Date: Sun, 28 Aug 2016 13:15:30 -0500 From: William Hubbs To: gentoo development Subject: Re: [gentoo-dev] rfc: /etc/hostname on gentoo Message-ID: <20160828181530.GA29657@linux1.gaikai.biz> Mail-Followup-To: gentoo development References: <20160822155808.GA16219@whubbs1.gaikai.biz> 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="HlL+5n6rz5pIUxbD" Content-Disposition: inline In-Reply-To: <20160822155808.GA16219@whubbs1.gaikai.biz> User-Agent: Mutt/1.5.24 (2015-08-30) X-Archives-Salt: ba94411b-699f-4fc8-9b11-a8788257695b X-Archives-Hash: af8e7b95309266321d14c8aa39117930 --HlL+5n6rz5pIUxbD Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Ok all, here is what openrc-0.22 is going to do in terms of setting the host name. If /etc/hostname exists, the first word of that file will be used as the host name. Otherwise, if the value is set in /etc/conf.d/hostname it will be used. Otherwise, OpenRC will not touch the hostname. One advantage of this, on Linux, is that you can set your host name in the kernel and this setting will be respected. Also, this means the script by default can run in containers if they allow overriding the hostname inside the container. William --HlL+5n6rz5pIUxbD Content-Type: application/pgp-signature; name="signature.asc" Content-Description: Digital signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v2 iEYEARECAAYFAlfDKj0ACgkQblQW9DDEZThegQCfQs2PNylsdExXGjpEH7I9OfvJ LRMAoLTVItYkzYq0xUBBcbMcuhiw2XBL =URO3 -----END PGP SIGNATURE----- --HlL+5n6rz5pIUxbD--