me
/
guix
Archived
1
0
Fork 0

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.
master
Ludovic Courtès 2021-09-14 11:35:54 +02:00
parent 912880c15e
commit 580984f241
No known key found for this signature in database
GPG Key ID: 090B11993D9AEBB5
1 changed files with 6 additions and 1 deletions

View File

@ -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