http://bugzilla.novell.com/show_bug.cgi?id=584484
http://bugzilla.novell.com/show_bug.cgi?id=584484#c5
Dr. Werner Fink changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |varkoly@novell.com
--- Comment #5 from Dr. Werner Fink 2010-03-22 15:50:41 UTC ---
The assumption that a windows partition introduce running CMOS in local time
could be wrong ... at least Windows7[tm] can handle CMOS running in UTC.
Beside this a normal Linux kernel assumes always that a CMOS is running
in UTC as this is common standard in UNICES systems. To change this
one have to told this the kernel *before* the root file system is
mounted (otherwise time stamps went wrong, e.g. in worst case jump into
the future).
This is the reason why the initrd has the possiblity to tell the
kernel that CMOS is running in UTC. For this the variable HWCLOCK
in /etc/sysconfig/clock should be set to --localtime, then the
script mkinitrd has to be executed. This refresh the initrd, that
is that /etc/sysconfig/clock, /etc/localtime, and /usr/share/zoneinfo/UTC
are copied into initrd.
Now the NTP should be disabled, then the CMOS clock set up into the
correct timezone, after this we see after a reboot:
* In initrd the program wrapclock tells the kernel that CMOS runs
in localtime and also wrapclock tells the kernel the offset to
the world wide UTC time. (For this /etc/localtime and
/usr/share/zoneinfo/UTC are required)
* The file /dev/shm/warpclock is touched
* The root file system is mounted with correct time stamps
* /sbin/init from the disk will be executed
* The boot script boot.clock does not touch the clock due /dev/shm/warpclock
Now the kernel uses *internal* the system time with correct UTC and
the glibc API introduce the correct offset to system localtime calulated
with the /etc/localtime and /usr/share/zoneinfo/UTC.
Now NTP enters the scene: IF NTP is allowed to correct both system time
*and* CMOS time it should now about the CMOS is running in localtime.
Otherwise the CMOS clock is switched back to UTC done by the so called
11 minute mode of the kernel its self (compare with the manual page of
adjtimex(8) and the system manual page adjtimex(2))
--
Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.