diff options
author | Ludovic Courtès <ludo@gnu.org> | 2021-09-14 11:35:54 +0200 |
---|---|---|
committer | Ludovic Courtès <ludo@gnu.org> | 2021-09-14 11:50:59 +0200 |
commit | 580984f2417853379d98ea927fd95c0f0fbe2c97 (patch) | |
tree | fd12273435c09a5360dc9c253fa8d3b55b1d17b5 /gnu/system.scm | |
parent | 912880c15ec7226d82773991ac833cec4e1985b2 (diff) | |
download | guix-580984f2417853379d98ea927fd95c0f0fbe2c97.tar.gz |
system: Add trailing newline to /etc/timezone.
Fixes <https://issues.guix.gnu.org/50523>. Reported by meedstrom@teknik.io. * gnu/system.scm (operating-system-etc-service): Add trailing newline to "timezone" contents.
Diffstat (limited to 'gnu/system.scm')
-rw-r--r-- | gnu/system.scm | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/gnu/system.scm b/gnu/system.scm index 98aeda0306..2b919d8b4a 100644 --- a/gnu/system.scm +++ b/gnu/system.scm @@ -969,7 +969,12 @@ fi\n"))) ;; Some programs (e.g., GLib) look at /etc/timezone to find the ;; name of the current timezone. For details, see ;; https://lists.gnu.org/archive/html/guix-devel/2019-07/msg00166.html - ("timezone" ,(plain-file "timezone" (operating-system-timezone os))) + ;; Some programs expect a terminating newline. + ("timezone" ,(plain-file "timezone" + (string-append + (string-trim-both + (operating-system-timezone os)) + "\n"))) ("localtime" ,(file-append tzdata "/share/zoneinfo/" (operating-system-timezone os))) ,@(if sudoers |