From mboxrd@z Thu Jan 1 00:00:00 1970 From: Timothy Sample Subject: Re: core-updates freeze Date: Tue, 16 Jul 2019 10:19:37 -0400 Message-ID: <87o91udpty.fsf@ngyro.com> References: <87blybrqjn.fsf@devup.no> <87ftncvbgs.fsf@gnu.org> <877e8oo08n.fsf@posteo.net> <874l3rmg8j.fsf@devup.no> <87ftna9gkg.fsf@posteo.net> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" Return-path: Received: from eggs.gnu.org ([2001:470:142:3::10]:39245) by lists.gnu.org with esmtp (Exim 4.86_2) (envelope-from ) id 1hnOIv-0004wY-F9 for guix-devel@gnu.org; Tue, 16 Jul 2019 10:19:42 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hnOIt-0000LM-GL for guix-devel@gnu.org; Tue, 16 Jul 2019 10:19:41 -0400 Received: from out5-smtp.messagingengine.com ([66.111.4.29]:39459) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1hnOIt-0000J3-8e for guix-devel@gnu.org; Tue, 16 Jul 2019 10:19:39 -0400 In-Reply-To: <87ftna9gkg.fsf@posteo.net> (Kei Kebreau's message of "Sat, 13 Jul 2019 10:04:15 -0400") List-Id: "Development of GNU Guix and the GNU System distribution." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-devel-bounces+gcggd-guix-devel=m.gmane.org@gnu.org Sender: "Guix-devel" To: Kei Kebreau Cc: guix-devel@gnu.org --=-=-= Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Hi, Kei Kebreau writes: > Marius Bakke writes: > >> I'm not sure what we should do about it. Thoughts? >> >> Kei: Does it work if you 'echo Your/Timezone > /etc/timezone' ? >> Alternatively, you could make /etc/localtime a symbolic link to >> $tzdata/share/zoneinfo/Your/Timezone, though that will not persist a >> reboot. > > I can confirm that both of these methods work, so crude work-arounds > include > > 1. Setting the system's configured time zone in /etc/timezone This is my vote for two reasons. First, it seems more elegant. If I want to know the timezone name, I should look it up directly, and not chase symlinks around looking for some canonical timezone file. I think this is the closest thing to a =E2=80=9Cstandard way to get the name of the system timezone=E2=80=9D (here, =E2=80=9Cstandard=E2=80=9D means =E2=80=9Cwell, I guess at least Gentoo doe= s it=E2=80=9D). Second, it is a one-liner for us: --=-=-= Content-Type: text/x-patch Content-Disposition: inline; filename=0001-system-Write-the-timezone-to-etc-timezone.patch Content-Description: the patch >From ad931895edae97e2d6d77542fcbe8dc793f193f0 Mon Sep 17 00:00:00 2001 From: Timothy Sample Date: Tue, 16 Jul 2019 10:04:58 -0400 Subject: [PATCH] system: Write the timezone to /etc/timezone. * gnu/system.scm (operating-system-etc-service): Write the operating system timezone to /etc/timezone. Fixes . --- gnu/system.scm | 1 + 1 file changed, 1 insertion(+) diff --git a/gnu/system.scm b/gnu/system.scm index 01be1243fe..75ac0632bb 100644 --- a/gnu/system.scm +++ b/gnu/system.scm @@ -716,6 +716,7 @@ fi\n"))) ;; to certain networks. Some discussion at ;; https://lists.gnu.org/archive/html/help-guix/2017-09/msg00037.html ("hostname" ,(plain-file "hostname" (operating-system-host-name os))) + ("timezone" ,(plain-file "timezone" (operating-system-timezone os))) ("localtime" ,(file-append tzdata "/share/zoneinfo/" (operating-system-timezone os))) ("sudoers" ,(operating-system-sudoers-file os)))))) -- 2.22.0 --=-=-= Content-Type: text/plain Thoughts? -- Tim --=-=-=--