Gentoo Archives: gentoo-user

From: Mike Gilbert <floppym@g.o>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] Re: howto get systemd to use localtime (I think)
Date: Tue, 27 May 2014 12:56:54
Message-Id: CAJ0EP42+Sug9F-oWL1ZRNC1ZA3y+3RMhL3i88+QHGxUXz9b6ng@mail.gmail.com
In Reply to: Re: [gentoo-user] Re: howto get systemd to use localtime (I think) by covici@ccs.covici.com
1 On Tue, May 27, 2014 at 5:07 AM, <covici@××××××××××.com> wrote:
2 > Neil Bothwick <neil@××××××××××.uk> wrote:
3 >
4 >> On Tue, 27 May 2014 01:37:17 -0400, covici@××××××××××.com wrote:
5 >>
6 >> > OK, thanks, I have no /etc/adjtime at all, and I have two files,
7 >> > /etc/localtime (not a link) and /etc/timezone. Should I delete the
8 >> > later and change the former to a link?
9 >>
10 >> No. Gentoo copies the correct file from /usr/share/zoneinfo rather than
11 >> making a symlink, so that it still works if /usr is a separate filesystem
12 >> that has not yet been mounted - the clock is set before local filesystems
13 >> are mounted. It uses the contents of /etc/timezone to determine which
14 >> file to copy.
15 >>
16 >> Check that /etc/timezone is correct. If not, change it and either copy
17 >> the correct file manaually or re-emerge sys-libs/timezone-data.
18 >
19 > /etc/timezone is correct. I wonder when systemd using dracut sets the
20 > time, maybe its confused. I don't see it using hwclock like openrc used
21 > to, but I found an hwclock unit somewhere, should I try to use that?
22 >
23 >
24
25 I believe systemd-timedated should take care of it.
26
27 Going back to the /etc/adjtime file that jcallen referred to: You can
28 create the file and set it to LOCAL by running "timedatectl
29 set-local-rtc 1".

Replies

Subject Author
Re: [gentoo-user] Re: howto get systemd to use localtime (I think) covici@××××××××××.com