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 B8205138330 for ; Thu, 25 Aug 2016 12:50:47 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id EC54421C072; Thu, 25 Aug 2016 12:50:32 +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 D87CF21C028 for ; Thu, 25 Aug 2016 12:50:31 +0000 (UTC) Received: from mail-it0-f46.google.com (mail-it0-f46.google.com [209.85.214.46]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) (Authenticated sender: floppym) by smtp.gentoo.org (Postfix) with ESMTPSA id 415D8340906 for ; Thu, 25 Aug 2016 12:50:30 +0000 (UTC) Received: by mail-it0-f46.google.com with SMTP id e63so269041260ith.1 for ; Thu, 25 Aug 2016 05:50:30 -0700 (PDT) X-Gm-Message-State: AEkoouvw/JbB4suwtwSIuqMvnS4Wc7IEQZ9cADNwQBSWYldjLrEt0rfUSG7OfTW3mxCeghoTPoJC2XDZXqkT5A== X-Received: by 10.107.35.134 with SMTP id j128mr11392136ioj.115.1472129427909; Thu, 25 Aug 2016 05:50:27 -0700 (PDT) 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 Received: by 10.79.103.196 with HTTP; Thu, 25 Aug 2016 05:50:07 -0700 (PDT) In-Reply-To: References: <20160822155808.GA16219@whubbs1.gaikai.biz> <1471894124.32381.0.camel@gentoo.org> <20160822220925.GB18116@whubbs1.gaikai.biz> <20160823195746.GA21460@whubbs1.gaikai.biz> <24d9469d-fa6f-ffde-797e-420eca01d2a1@gentoo.org> <45fe53a7-626f-62af-398c-2397aedb3064@gentoo.org> From: Mike Gilbert Date: Thu, 25 Aug 2016 08:50:07 -0400 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [gentoo-dev] Re: rfc: /etc/hostname on gentoo To: Gentoo Dev Content-Type: text/plain; charset=UTF-8 X-Archives-Salt: 2e68be2a-6532-4c8e-b10b-e89524fff8f4 X-Archives-Hash: 8e780ec93c48d797f8a12abf410ed20e On Thu, Aug 25, 2016 at 12:11 AM, Duncan <1i5t5.duncan@cox.net> wrote: > Mike Gilbert posted on Wed, 24 Aug 2016 11:49:42 -0400 as excerpted: > >> On Wed, Aug 24, 2016 at 7:42 AM, Michael Orlitzky >> wrote: >>> On 08/24/2016 07:37 AM, Daniel Campbell wrote: >>>> >>>> I imagine _someone_ out there wants it, otherwise we wouldn't be >>>> discussing it. >>> >>> The thread started out proposing it as a solution to a docker problem >>> that, it turns out, isn't a problem. Why are we still trying to fixing >>> something that isn't broken? Maybe I'm losing it, but nowhere in the >>> whole thread has anyone given a single reason why this might be useful. >> >> You're right that the orignal purpose of the change has been debunked. >> >> So, starting over: one real benefit would be cross-compatibility with >> systemd. It's one less thing people would need to reconfigure when >> migrating to/from openrc. >> >> And before anyone starts an argument about it, I don't care what your >> opinion on systemd is. I'm just throwing this out there as an actual >> benefit of adding support for /etc/hostname to openrc. > > Are you sure about systemd? Yes, I am certain that systemd uses this file to set the system hostname. It does *not* read /etc/conf.d/hostname, which is the main point here. > Because I'm on systemd here, working fine as far as can be observed, and > I don't have /etc/hostname. > > [after googling and checking manpages] > > Seems it's (semi-?)optional. The hostnamectl command can be used to set > the hostname (pretty/static/transient/or-combination-of) among other > things, and /etc/hostname presumably controls the static name. > But I have the (reported as transient) name set by kconfig option, and > apparently that's all that's needed on my setup, anyway. Nobody actually does this, except you and a few other Gentoo people. Most kernels in the wild are compiled by distro maintainers, who have no idea what you want to call your computer. Setting the hostname via a text file in /etc is a lot simpler than re-configuring a kernel. > So it seems systemd works just fine without /etc/hostname, certainly so > if it's set elsewhere, like say via kconfig option. I never said /etc/hostname was necessary for operation of systemd. It *is* the way that normal people set their hostname for a system that doesn't get configured via DHCP or some dynamic method.