[Bug 830060] New: Dracut is missing warpclock/hwclock
https://bugzilla.novell.com/show_bug.cgi?id=830060 https://bugzilla.novell.com/show_bug.cgi?id=830060#c0 Summary: Dracut is missing warpclock/hwclock Classification: openSUSE Product: openSUSE Factory Version: 13.1 Milestone 3 Platform: Other OS/Version: openSUSE 12.3 Status: NEW Severity: Critical Priority: P5 - None Component: Basesystem AssignedTo: bnc-team-screening@forge.provo.novell.com ReportedBy: werner@suse.com QAContact: qa-bugs@suse.de CC: tittiatcoke@gmail.com, fcrozat@suse.com, rmilasan@suse.com Found By: Development Blocker: Yes as subject shows: dracut does not correct the kernels assumption about the timezone of the BIOS/firmware clock, that is that there are systems which do not have UTC in BIOS/firmware clock. -- 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=830060 https://bugzilla.novell.com/show_bug.cgi?id=830060#c Dr. Werner Fink <werner@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Blocks| |830061 -- 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=830060 https://bugzilla.novell.com/show_bug.cgi?id=830060#c Dr. Werner Fink <werner@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |crrodriguez@opensuse.org Blocks|830061 | -- 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=830060 https://bugzilla.novell.com/show_bug.cgi?id=830060#c1 --- Comment #1 from Frederic Crozat <fcrozat@suse.com> 2013-07-18 07:47:25 UTC --- that's strange because dracut does check for /etc/localtime and will run hwclock --hctosys --localtime accordingly.. However, it will do so only if dracut initramfs is build for the specific host (using --hostonly). Did you build it that way ? -- 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=830060 https://bugzilla.novell.com/show_bug.cgi?id=830060#c2 Dr. Werner Fink <werner@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |NEEDINFO InfoProvider| |fcrozat@suse.com --- Comment #2 from Dr. Werner Fink <werner@suse.com> 2013-07-18 08:05:42 UTC --- I'm talking about hwclock --systz or my warpclock program in mkinitrd doing the same: Reset the System Time based on the current timezone. Also set the kernel's timezone value to the local timezone as indicated by the TZ environment variable and/or /usr/share/zoneinfo, as tzset(3) would interpret them. The obsolete tz_dsttime field of the kernel's timezone value is set to DST_NONE. (For details on what this field used to mean, see settimeofday(2).) .. why we should do this in initramfs ... simply do have all timestamps correct before the disks/partitions are checked and mounted. Does dracut do this *before* the root file system (and maybe /usr) is checked and mounted? -- 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=830060 https://bugzilla.novell.com/show_bug.cgi?id=830060#c3 Frederic Crozat <fcrozat@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEEDINFO |NEW InfoProvider|fcrozat@suse.com | --- Comment #3 from Frederic Crozat <fcrozat@suse.com> 2013-07-18 08:28:57 UTC --- (In reply to comment #2)
I'm talking about
hwclock --systz
or my warpclock program in mkinitrd doing the same:
Ah, ok. So, no, this part isn't done.
... why we should do this in initramfs ... simply do have all timestamps correct before the disks/partitions are checked and mounted.
Does dracut do this *before* the root file system (and maybe /usr) is checked and mounted?
hwclock is being called before /dev is being created, so it should be safe to just add hwclock --systz call, when /etc/localtime is present in initramfs -- 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=830060 https://bugzilla.novell.com/show_bug.cgi?id=830060#c Ye Yuan <yyuan@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |yyuan@suse.com AssignedTo|bnc-team-screening@forge.pr |fcrozat@suse.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=830060 https://bugzilla.novell.com/show_bug.cgi?id=830060#c4 --- Comment #4 from Frederic Crozat <fcrozat@suse.com> 2013-07-31 16:13:38 UTC --- It looks like upstream removed support for timezone adjustment for unconvincing results (you can end-up with /etc/adjtime being not in sync anymore with the copy in initrd), see https://bugzilla.redhat.com/show_bug.cgi?id=981617 I guess we'll need to make sure the support is still there and is calling hwclock --systz -- 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=830060 https://bugzilla.novell.com/show_bug.cgi?id=830060#c5 --- Comment #5 from Dr. Werner Fink <werner@suse.com> 2013-08-01 07:31:58 UTC --- (In reply to comment #4) Indeed this is a well known problem and the reason why we had triggered in past a initrd freshup in case if timezone changes ... see /sbin/refresh_initrd -- 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