From: Daniel Campbell <zlg@gentoo.org>
To: gentoo-dev@lists.gentoo.org
Subject: Re: [gentoo-dev] rfc: /etc/hostname on gentoo
Date: Mon, 22 Aug 2016 23:39:52 -0700 [thread overview]
Message-ID: <f0c3961d-35e4-2e35-5ccd-24ba20048815@gentoo.org> (raw)
In-Reply-To: <20160822220925.GB18116@whubbs1.gaikai.biz>
[-- Attachment #1.1: Type: text/plain, Size: 1674 bytes --]
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.
>
> Ok, now for the clarification.
>
> 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.
>
> 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
>
> I suppose whether we populate it by default might be a separate
> question.
>
> William
>
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.
--
Daniel Campbell - Gentoo Developer
OpenPGP Key: 0x1EA055D6 @ hkp://keys.gnupg.net
fpr: AE03 9064 AE00 053C 270C 1DE4 6F7A 9091 1EA0 55D6
[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 801 bytes --]
next prev parent reply other threads:[~2016-08-23 6:40 UTC|newest]
Thread overview: 56+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-08-22 15:58 [gentoo-dev] rfc: /etc/hostname on gentoo William Hubbs
2016-08-22 16:11 ` M. J. Everitt
2016-08-22 16:39 ` Rich Freeman
2016-08-22 17:03 ` William Hubbs
2016-08-22 17:32 ` Rich Freeman
2016-08-22 17:28 ` Michael Orlitzky
2016-08-22 17:51 ` Sven Vermeulen
2016-08-22 18:29 ` Rich Freeman
2016-08-23 19:59 ` Marc Schiffbauer
2016-08-22 17:37 ` Matthew Thode
2016-08-22 17:51 ` Matthew Thode
2016-08-22 19:18 ` Dirkjan Ochtman
2016-08-22 19:28 ` Hans de Graaff
2016-08-22 20:01 ` William Hubbs
2016-08-22 22:09 ` William Hubbs
2016-08-23 6:39 ` Daniel Campbell [this message]
2016-08-23 7:01 ` Christian Kniep
2016-08-23 12:33 ` Michael Orlitzky
2016-08-23 10:01 ` Rich Freeman
2016-08-23 12:26 ` Christian Kniep
2016-08-23 18:45 ` Rich Freeman
2016-08-23 19:57 ` William Hubbs
2016-08-23 20:25 ` Rich Freeman
2016-08-23 21:22 ` William Hubbs
2016-08-24 6:52 ` Christian Kniep
2016-08-24 6:56 ` Christian Kniep
2016-08-24 10:46 ` Rich Freeman
2016-08-24 7:12 ` Daniel Campbell
2016-08-24 11:17 ` Michael Orlitzky
2016-08-24 11:37 ` Daniel Campbell
2016-08-24 11:42 ` Michael Orlitzky
2016-08-24 12:40 ` Rich Freeman
2016-08-24 15:49 ` Mike Gilbert
2016-08-24 16:06 ` Michael Orlitzky
2016-08-24 16:22 ` Zac Medico
2016-08-24 16:33 ` Michael Orlitzky
2016-08-24 16:42 ` Zac Medico
2016-08-24 19:23 ` Consus
2016-08-24 22:43 ` Cédric Krier
2016-08-28 6:30 ` Daniel Campbell
2016-08-28 6:48 ` Michał Górny
2016-08-28 7:24 ` Daniel Campbell
2016-08-28 6:57 ` M. J. Everitt
2016-08-28 8:10 ` Zac Medico
2016-08-28 12:34 ` Patrick Lauer
2016-08-28 14:16 ` Rich Freeman
2016-08-28 14:21 ` Michał Górny
2016-08-28 15:29 ` Patrick Lauer
2016-08-28 15:54 ` Rich Freeman
2016-08-25 4:11 ` [gentoo-dev] " Duncan
2016-08-25 12:50 ` Mike Gilbert
2016-08-25 13:42 ` Rich Freeman
2016-08-24 8:02 ` Martin Vaeth
2016-08-23 12:17 ` [gentoo-dev] " Michael Orlitzky
2016-08-28 18:15 ` William Hubbs
2016-08-31 21:24 ` Daniel Campbell
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=f0c3961d-35e4-2e35-5ccd-24ba20048815@gentoo.org \
--to=zlg@gentoo.org \
--cc=gentoo-dev@lists.gentoo.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox