On Fri, Aug 30, 2013 at 01:04:29PM +0200, Carlos E. R. wrote:
On Friday, 2013-08-30 at 11:30 +0200, Dr. Werner Fink wrote:
On Thu, Aug 29, 2013 at 08:32:26PM +0200, Carlos E. R. wrote:
Ie, the «HWCLOCK="-u"» line has dissapeared - in two different computers running 12.3, at least.
The variable is important, it is sourced in "/etc/init.d/ntp" (script which still exists).
The the "/etc/init.d/ntp" script is buggy. It has to use /etc/adjtime.
Ok, so you mean that "HWCLOCK" has dissapeared, and instead ntp has to use "/etc/adjtime" (but it does not). However, how does "/etc/init.d/ntp" know if the system keeps the cmos on UTC or local time _before_ "/etc/adjtime" is created?
I mean, is the user choice at install time stored somewhere, besides "/etc/adjtime"? Remember that this file has to be deleted completely as a cure to some clock problems, and recreated.
"/etc/adjtime" is created by a postinstall scriptlet of aaa_base: [...] # just do a one-time migration of the time setting from /etc/sysconfig/clock # to /etc/adjtime as systemd now use the later as reference # if test ! -e /etc/adjtime then echo -e "0.0 0 0.0\n0\nUTC" > /etc/adjtime fi if test -s /etc/sysconfig/clock then . /etc/sysconfig/clock if test -n "$HWCLOCK" then sed -ri '\@^##[[:blank:]]+Type:[[:blank:]]+string\(-u,--utc,--localtime\)@,\@^HWCLOCK=@c\ #\ # Be aware that the time reference of the CMOS/HW clock has been\ # forwarded to /etc/adjtime, the file used by hwclock(8) and\ # systemd(1) as reference for the CMOS/HW clock.\ ' /etc/sysconfig/clock case "$HWCLOCK" in *-l*) sed -ri 's@^UTC$@LOCAL@' /etc/adjtime ;; *) sed -ri 's@^LOCAL$@UTC@' /etc/adjtime ;; esac fi fi [...] this file should with 12.3 and following not be deleted. It is the only reference for the setup of the CMOS clock. Please note that this was not my idea even if the shell code is mine ;) Werner -- "Having a smoking section in a restaurant is like having a peeing section in a swimming pool." -- Edward Burr