From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:47576) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1duHJw-0003xW-LT for guix-patches@gnu.org; Tue, 19 Sep 2017 08:08:09 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1duHJq-0000Qp-Rh for guix-patches@gnu.org; Tue, 19 Sep 2017 08:08:08 -0400 Received: from debbugs.gnu.org ([208.118.235.43]:38722) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1duHJq-0000Qh-O3 for guix-patches@gnu.org; Tue, 19 Sep 2017 08:08:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1duHJq-0008TY-Fj for guix-patches@gnu.org; Tue, 19 Sep 2017 08:08:02 -0400 Subject: [bug#28473] networkmanager hostname woes Resent-Message-ID: Received: from eggs.gnu.org ([2001:4830:134:3::10]:47379) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1duHJ7-0003tG-Ci for guix-patches@gnu.org; Tue, 19 Sep 2017 08:07:18 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1duHIx-0008CI-Td for guix-patches@gnu.org; Tue, 19 Sep 2017 08:07:17 -0400 From: ludo@gnu.org (Ludovic =?UTF-8?Q?Court=C3=A8s?=) References: <878thhd797.fsf@gnu.org> <20170915.121202.532518915991342728.post@thomasdanckaert.be> <87o9qblmzf.fsf@gnu.org> <20170916.140320.662725109898263796.post@thomasdanckaert.be> Date: Tue, 19 Sep 2017 14:06:53 +0200 In-Reply-To: <20170916.140320.662725109898263796.post@thomasdanckaert.be> (Thomas Danckaert's message of "Sat, 16 Sep 2017 14:03:20 +0200 (CEST)") Message-ID: <87inge51uq.fsf@gnu.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+kyle=kyleam.com@gnu.org Sender: "Guix-patches" To: Thomas Danckaert Cc: 28473@debbugs.gnu.org, help-guix@gnu.org Hi Thomas! Thomas Danckaert skribis: > From: ludo@gnu.org (Ludovic Court=C3=A8s) > Subject: Re: networkmanager hostname woes > Date: Fri, 15 Sep 2017 22:34:44 +0200 [...] >> Hmm, good points. Maybe just create /etc/hostname unconditionally >> from >> =E2=80=98essential-services=E2=80=99? It can=E2=80=99t hurt, right? > > I don't think so, only for people committed to extreme minimalism. > The attached patch fixes the issue on my system. Will it do? > > Thomas > > From 76a461ff1540807d8beb98c298a8ea0165a6aaa4 Mon Sep 17 00:00:00 2001 > From: Thomas Danckaert > Date: Sat, 16 Sep 2017 13:54:40 +0200 > Subject: [PATCH] system: Create "/etc/hostname". > > * gnu/system.scm (operating-system-etc-service): Add a plain-file with the > operating-system-host-name. > --- > gnu/system.scm | 1 + > 1 file changed, 1 insertion(+) > > diff --git a/gnu/system.scm b/gnu/system.scm > index bb7e8531e..2ad4b3054 100644 > --- a/gnu/system.scm > +++ b/gnu/system.scm > @@ -642,6 +642,7 @@ fi\n"))) > ("bashrc" ,#~#$bashrc) > ("hosts" ,#~#$(or (operating-system-hosts-file os) > (default-/etc/hosts (operating-system-host-name= os)))) > + ("hostname" ,(plain-file "hostname" (operating-system-host-name o= s))) LGTM. Maybe just add a comment pointing to this discussion, so we know why this file matters. Thank you! Ludo=E2=80=99.