[Bug 677411] New: systemd doesn't handle bios clock in localtime
https://bugzilla.novell.com/show_bug.cgi?id=677411 https://bugzilla.novell.com/show_bug.cgi?id=677411#c0 Summary: systemd doesn't handle bios clock in localtime Classification: openSUSE Product: openSUSE 11.4 Version: Factory Platform: Other OS/Version: Other Status: NEW Severity: Normal Priority: P5 - None Component: Basesystem AssignedTo: bnc-team-screening@forge.provo.novell.com ReportedBy: fcrozat@novell.com QAContact: qa@suse.de Found By: --- Blocker: --- systemd doesn't read /etc/sysconfig/clock and therefore doesn't restore system clock correcty at startup when system is configured to use local time for bios clock (I know it is not a good idea to use bios clock in localtime). This can force fsck because unmount time can appear to be in the future. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=677411 https://bugzilla.novell.com/show_bug.cgi?id=677411#c zj jia <zjjia@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |zjjia@novell.com AssignedTo|bnc-team-screening@forge.pr |mt@novell.com |ovo.novell.com | -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=677411 https://bugzilla.novell.com/show_bug.cgi?id=677411#c Marius Tomaschewski <mt@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |ro@novell.com AssignedTo|mt@novell.com |kasievers@novell.com -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=677411 https://bugzilla.novell.com/show_bug.cgi?id=677411#c1 Kay Sievers <kasievers@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |NEEDINFO InfoProvider| |fcrozat@novell.com --- Comment #1 from Kay Sievers <kasievers@novell.com> 2011-04-18 16:19:48 UTC --- Are you sure /etc/localtime is up to date? At bootup we run: hwclock --systz details are in: /lib/systemd/system/hwclock-load.service which should do the trick. Anyway, running the BIOS in the local timezone just asks for trouble, as the kernel itself reads the rtc time and sets the system clock at bootup. Non-ancient Windows versions support UTC BIOS clocks just fine. That would be the right fix. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=677411 https://bugzilla.novell.com/show_bug.cgi?id=677411#c2 Frederic Crozat <fcrozat@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEEDINFO |NEW InfoProvider|fcrozat@novell.com | --- Comment #2 from Frederic Crozat <fcrozat@novell.com> 2011-04-20 13:46:19 UTC --- we already had the discussion about using UTC BIOS clock which is a better solution, I agree with that, but for now, localtime is still the default in SUSE installer (at least in 11.4 gnome live installer), so we need this option to work until we "kill it". /etc/localtime is up to date (hardlink to Europe/Paris tz file), same for /etc/adjtime (correctly stating LOCAL) To reproduce the issue : - install 11.4 (for instance with live-gnome image) with clock set to local (it is by default) - check on the install system that clock is ok (I used Europe/Paris as timezone, ie GMT+2 at the moment) - install systemd-sysvinit - reboot - check the clock in the BIOS (before booting openSUSE with systemd enabled) : it is still tracking local time. - systemd-fsck will complain the fs was last unmounted in the future - clock is set 2 hours in the past - systemctl status hwclock-load.service is returning : Loaded: loaded (/lib/systemd/system/hwclock-load.service Active: active (exited) since Wed, 20 Apr 2011 13:30:33 +0200 ; 5min ago Process: 314 ExecStart=/sbin/hwclock --systz (code=exited, status=0/SUCCESS) CGroup: name=systemd:/system/hwclock-load.service - if you run hwclock at this time, it is still displaying the "right" local time, because BIOS clock hasn't been synced yet to system clock (it is done at shutdown) - if I re-run hwclock --systz, clock goes again 2h in the past running hwclock --systz is expecting system clock to get set to GMT clock by kernel and then adjustment is made to "fix" the timezone (since kernel doesn't have any timezone info at startup). I'm starting to wonder if hwclock isn't buggy.. see https://bugzilla.redhat.com/show_bug.cgi?id=672194 -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=677411 https://bugzilla.novell.com/show_bug.cgi?id=677411#c3 Kay Sievers <kasievers@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |NEEDINFO InfoProvider| |fcrozat@novell.com --- Comment #3 from Kay Sievers <kasievers@novell.com> 2011-04-26 17:42:42 UTC --- Ok, next file. :) Has /etc/adjtime the right timezone? That's also read by hwclock. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=677411 https://bugzilla.novell.com/show_bug.cgi?id=677411#c4 Frederic Crozat <fcrozat@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEEDINFO |NEW InfoProvider|fcrozat@novell.com | --- Comment #4 from Frederic Crozat <fcrozat@novell.com> 2011-04-27 08:03:32 UTC --- yes, it has (it was stated in line 7 of comment 2 :)) -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=677411 https://bugzilla.novell.com/show_bug.cgi?id=677411#c5 Matjaz Kranjc <matjazk@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |matjazk@gmail.com --- Comment #5 from Matjaz Kranjc <matjazk@gmail.com> 2011-05-01 07:55:34 UTC --- I am experiencing the same issue with systemd, where on every boot the time is offset by the UTC time difference. The issue disappears as soon as I switch back to sysvinit without making any configuration changes. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=677411 https://bugzilla.novell.com/show_bug.cgi?id=677411#c6 Kay Sievers <kasievers@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |NEEDINFO InfoProvider| |fcrozat@novell.com --- Comment #6 from Kay Sievers <kasievers@novell.com> 2011-05-30 19:09:01 UTC --- It should be fixed in the current version. Systemd now applied the local timezone from /etc/locatime if /etc/adjtime contains LOCAL in the third line. hwclock(8) is never called on a systemd bootup. We don't touch the RTC at all by default. Only if NTP runs, it will be synced. Frederic can you still reproduce it? -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=677411 https://bugzilla.novell.com/show_bug.cgi?id=677411#c7 Frederic Crozat <fcrozat@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEEDINFO |RESOLVED InfoProvider|fcrozat@novell.com | Resolution| |FIXED --- Comment #7 from Frederic Crozat <fcrozat@novell.com> 2011-06-08 16:18:25 UTC --- tested on factory with systemd 28, removing /etc/adjtime, only relying on /etc/sysconfig/clock (ie localtime) and it worked fine. I switched to UTC time and it is still working fine. closing as fixed -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
participants (1)
-
bugzilla_noreply@novell.com