[opensuse] Re: chrony and hwclock
Roger Oberholtzer wrote:
On Tue, 2011-07-19 at 07:40 -0400, Anton Aylward wrote:
Roger Oberholtzer said the following on 07/19/2011 06:45 AM:
Maybe I should have written that like this (which is what I meant):
2. The hardware is in localtime when the system is booted, and there is a timezone specified that specifies how this differs from UTC time.
That might be your problem. If the setup assumes you scenario #1 but the hardware is actually in #2 that could account for the offset you see.
It would. But I have scenario 1 through and through. And I think the system is set up that way in that in /etc/sysconfig/clock I have:
HWCLOCK="-u"
TIMEZONE="Europe/Stockholm"
Which I think it the only place this is set. All else derives from this.
No. The TIMEZONE value is only documentation by openSUSE what time zone was set up during installation. During actual operation, /etc/localtime is used. More relevant, during boot & shutdown, *ONLY* /etc/localtime is used, since no TZ environment variable exists then. You can verify my statement by calling strace hwclock -r >hwclock.log 2>&1 and examining the log file. There you will see that /etc/localtime is opened for reading. That's why I posted the 5 action steps which include the test if /etc/localtime has the correct value. Joachim -- =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- Joachim Schrod Email: jschrod@acm.org Roedermark, Germany -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
participants (1)
-
Joachim Schrod