diff options
author | Ludovic Courtès <ludo@gnu.org> | 2024-09-07 16:51:42 +0200 |
---|---|---|
committer | Ludovic Courtès <ludo@gnu.org> | 2024-09-09 17:17:55 +0200 |
commit | 89fdc4b45f9c147bf64eb9763172553044a7f0ab (patch) | |
tree | 172bdb98b35aed0cc54114eaf40fedfc687ae618 /gnu/services | |
parent | 9d17cda3d915e1226494a1983ef95a3c600acf9d (diff) | |
download | guix-89fdc4b45f9c147bf64eb9763172553044a7f0ab.tar guix-89fdc4b45f9c147bf64eb9763172553044a7f0ab.tar.gz |
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
Diffstat (limited to 'gnu/services')
-rw-r--r-- | gnu/services/base.scm | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/gnu/services/base.scm b/gnu/services/base.scm index 4b5b103cc3..feca7ecce9 100644 --- a/gnu/services/base.scm +++ b/gnu/services/base.scm @@ -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."))) |