From mboxrd@z Thu Jan 1 00:00:00 1970 From: ludo@gnu.org (Ludovic =?utf-8?Q?Court=C3=A8s?=) Subject: Re: networkmanager hostname woes Date: Tue, 19 Sep 2017 14:06:53 +0200 Message-ID: <87inge51uq.fsf@gnu.org> References: <878thhd797.fsf@gnu.org> <20170915.121202.532518915991342728.post@thomasdanckaert.be> <87o9qblmzf.fsf@gnu.org> <20170916.140320.662725109898263796.post@thomasdanckaert.be> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:47245) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1duHIs-0003iU-5p for help-guix@gnu.org; Tue, 19 Sep 2017 08:07:07 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1duHIm-0007vy-6E for help-guix@gnu.org; Tue, 19 Sep 2017 08:07:02 -0400 In-Reply-To: <20170916.140320.662725109898263796.post@thomasdanckaert.be> (Thomas Danckaert's message of "Sat, 16 Sep 2017 14:03:20 +0200 (CEST)") List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-guix-bounces+gcggh-help-guix=m.gmane.org@gnu.org Sender: "Help-Guix" To: Thomas Danckaert Cc: help-guix@gnu.org, guix-patches@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.