Gentoo Archives: gentoo-dev

From: William Hubbs <williamh@g.o>
To: gentoo-dev@l.g.o
Subject: Re: [gentoo-dev] timezone configuration - why copying, not symlinking /etc/localtime ?
Date: Sat, 20 Mar 2021 19:10:22
Message-Id: YFZIlbRIEojaDfPj@linux1.home
In Reply to: Re: [gentoo-dev] timezone configuration - why copying, not symlinking /etc/localtime ? by Nils Freydank
1 On Sat, Mar 20, 2021 at 05:04:06PM +0100, Nils Freydank wrote:
2 > Hi Andreas,
3 >
4 > Am Samstag, den 20.03.2021 um 16:37:23 Uhr +0100 schrieb "Andreas K. Huettel" <dilfridge@g.o>:
5 > > [...]
6 > > Does anyone remember the reason for 1) ? Or is that lost in history?
7 >
8 > I just quote comment 3 from the linked bug https://bugs.gentoo.org/737914#c3:
9 > "copying the zonefile to /etc/localtime is a good idea, as /usr could be on a separate partition. How about creating the
10 >
11 > /etc/TZ -> /etc/timezone softlink by default?"
12 >
13 > In my opinion so many tools tend to expect an always-mounted /usr that the
14 > symlink would not do any harm. FWIW I use symlinks on a handfull Gentoo machines
15 > and had no issues in years, but I'm pretty close to mainstream (amd64, glibc,
16 > OpenRC).
17
18 I'm not sure which symlink you are talking about, so I am adding my
19 comments here.
20
21 /etc/localtime should definitely be a symlink to the proper file in
22 /usr/share/zoneinfo.
23
24 This works fine if /usr is on a separate partition *and* you are using
25 an initramfs. The only time it doesn't work is if /usr is separate
26 without using an initramfs.
27
28 Council decided years ago that we don't support separate /usr without an
29 initramfs, but we haven't completed that transition yet.
30
31 William

Attachments

File name MIME type
signature.asc application/pgp-signature

Replies