Gentoo Archives: gentoo-dev

From: Mike Gilbert <floppym@g.o>
To: Gentoo Dev <gentoo-dev@l.g.o>
Subject: Re: [gentoo-dev] timezone configuration - why copying, not symlinking /etc/localtime ?
Date: Mon, 22 Mar 2021 02:06:19
Message-Id: CAJ0EP40uty3mST_GqRPdxTU5oftt7c02g7N6aWjfWaWi65AgZQ@mail.gmail.com
In Reply to: Re: [gentoo-dev] timezone configuration - why copying, not symlinking /etc/localtime ? by Thomas Deutschmann
1 On Sun, Mar 21, 2021 at 7:58 PM Thomas Deutschmann <whissi@g.o> wrote:
2 >
3 > On 2021-03-20 16:37, Andreas K. Huettel wrote:
4 > > 2) Most other distros seem to just do
5 >
6 > No, not most distros are doing that. systemd is forcing that downstream
7 > (the result is the same)!
8 >
9 > It was added via
10 > https://github.com/systemd/systemd/commit/92c4ef2d357baeef78b6f82f119b92f7ed12ac77
11 > without mentioning a reason.
12
13 Based on that commit message, it looks systemd switched to looking at
14 the symlink target instead of /etc/timezone well *after* some major
15 distro started using a symlink for /etc/localtime. I suspect Kay
16 Sievers noticed that the content of /etc/timezone and /etc/localtime
17 were redundant on his development machine, and added a TODO entry to
18 eliminate the redundant /etc/timezone file.
19
20 In other words, this isn't a case of systemd forcing distros to
21 symlink /etc/localtime; they were already doing that anyway.

Replies