GNU bug report logs -
#28473
networkmanager hostname woes
Previous Next
To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 28473 in the body.
You can then email your comments to 28473 AT debbugs.gnu.org in the normal way.
Toggle the display of automated, internal messages from the tracker.
Report forwarded
to
guix-patches <at> gnu.org
:
bug#28473
; Package
guix-patches
.
(Sat, 16 Sep 2017 12:04:01 GMT)
Full text and
rfc822 format available.
Acknowledgement sent
to
Thomas Danckaert <post <at> thomasdanckaert.be>
:
New bug report received and forwarded. Copy sent to
guix-patches <at> gnu.org
.
(Sat, 16 Sep 2017 12:04:01 GMT)
Full text and
rfc822 format available.
Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):
[Message part 1 (text/plain, inline)]
From: ludo <at> gnu.org (Ludovic Courtès)
Subject: Re: networkmanager hostname woes
Date: Fri, 15 Sep 2017 22:34:44 +0200
> Thomas Danckaert <post <at> thomasdanckaert.be> skribis:
>
>> From: ludo <at> gnu.org (Ludovic Courtès)
>> Subject: Re: networkmanager hostname woes
>> Date: Thu, 14 Sep 2017 10:17:08 +0200
>>
>>> I don’t understand the logic in there, but a quick fix would be
>>> to have
>>> ‘network-manager-service-type’ create /etc/hostname.
>>>
>>> What do people think?
>>
>> I agree. What is the best way to do that?
>>
>> - make network-manager-service extend etc-service? I think in
>> this
>> case we'd need to pass the host-name to
>> network-manager-service-type somehow? It feels strange to make
>> the
>> system config's host-name a configuration parameter of
>> network-manager-service-type just for this reason.
>>
>> - Create /etc/hosts in network-manager activation, using the
>> result
>> of ‘hostname’ at that point?
>>
>> - ...?
>
> Hmm, good points. Maybe just create /etc/hostname unconditionally
> from
> ‘essential-services’? It can’t 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
[0001-system-Create-etc-hostname.patch (text/x-patch, inline)]
From 76a461ff1540807d8beb98c298a8ea0165a6aaa4 Mon Sep 17 00:00:00 2001
From: Thomas Danckaert <thomas.danckaert <at> gmail.com>
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 os)))
("localtime" ,(file-append tzdata "/share/zoneinfo/"
(operating-system-timezone os)))
("sudoers" ,(operating-system-sudoers-file os))))))
--
2.14.1
Information forwarded
to
guix-patches <at> gnu.org
:
bug#28473
; Package
guix-patches
.
(Tue, 19 Sep 2017 12:08:02 GMT)
Full text and
rfc822 format available.
Message #8 received at submit <at> debbugs.gnu.org (full text, mbox):
Hi Thomas!
Thomas Danckaert <post <at> thomasdanckaert.be> skribis:
> From: ludo <at> gnu.org (Ludovic Courtès)
> Subject: Re: networkmanager hostname woes
> Date: Fri, 15 Sep 2017 22:34:44 +0200
[...]
>> Hmm, good points. Maybe just create /etc/hostname unconditionally
>> from
>> ‘essential-services’? It can’t 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 <thomas.danckaert <at> gmail.com>
> 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 os)))
LGTM. Maybe just add a comment pointing to this discussion, so we know
why this file matters.
Thank you!
Ludo’.
Reply sent
to
Thomas Danckaert <post <at> thomasdanckaert.be>
:
You have taken responsibility.
(Tue, 19 Sep 2017 18:15:02 GMT)
Full text and
rfc822 format available.
Notification sent
to
Thomas Danckaert <post <at> thomasdanckaert.be>
:
bug acknowledged by developer.
(Tue, 19 Sep 2017 18:15:02 GMT)
Full text and
rfc822 format available.
Message #13 received at 28473-done <at> debbugs.gnu.org (full text, mbox):
bug archived.
Request was from
Debbugs Internal Request <help-debbugs <at> gnu.org>
to
internal_control <at> debbugs.gnu.org
.
(Wed, 18 Oct 2017 11:24:04 GMT)
Full text and
rfc822 format available.
This bug report was last modified 7 years and 242 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.