1
0
mirror of https://git.savannah.gnu.org/git/guix.git synced 2026-04-06 21:20:33 +02:00

services: host-name: Use the host name as the running value.

Previously, the “running value” of the ‘host-name’ service would
be #<unspecified>.  This change makes it more pleasing to the eye.

* gnu/services/base.scm (host-name-service-type): ‘start’ returns NAME.

Change-Id: I38b8320e43639b6623475871ca6fbad3a459eb59
This commit is contained in:
Ludovic Courtès
2024-09-07 16:51:42 +02:00
parent 9d17cda3d9
commit 89fdc4b45f

View File

@@ -801,7 +801,8 @@ host names."
(documentation "Initialize the machine's host name.")
(provision '(host-name))
(start #~(lambda _
(sethostname #$name)))
(sethostname #$name)
#$name))
(one-shot? #t)))
(description "Initialize the machine's host name.")))