Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Bug#680498: chrony postinst fails to recognize UTC hardware clock

3 views
Skip to first unread message

Johan Haggi

unread,
Jul 6, 2012, 8:10:02 AM7/6/12
to
Package: chrony
Version: 1.24-3.1
Severity: normal

I have my HW clock on UTC, but chronyc assume local time

After a new installation of chronyc, I have this /etc/chrony/chrony.conf

[...]
# If the last line of this file reads 'rtconutc' chrony will assume that
# the CMOS clock is on UTC (GMT). If it reads '# rtconutc' or is absent
# chrony will assume local time. The line (if any) was written by the
# chrony postinst based on what it found in /etc/default/rcS. You may
# change it if necessary.
# rtconutc

My /etc/default/rcS

[...]
#UTC=yes # OBSOLETE; see /etc/adjtime and hwclock(8).
[...]

My /etc/adjtime

-0.063198 1341555445 0.000000
1341555445
UTC



-- System Information:
Debian Release: wheezy/sid
APT prefers stable-updates
APT policy: (500, 'stable-updates'), (500, 'testing'), (500, 'stable')
Architecture: amd64 (x86_64)

Kernel: Linux 3.2.0-2-amd64 (SMP w/4 CPU cores)
Locale: LANG=it_IT.UTF-8, LC_CTYPE=it_IT.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages chrony depends on:
ii dpkg 1.16.4.3
ii install-info 4.13a.dfsg.1-10
ii libc6 2.13-33
ii libncurses5 5.9-9
ii libreadline5 5.2-11
ii timelimit 1.8-1
ii ucf 3.0025+nmu3

Versions of packages chrony recommends:
ii udev 175-3.1

chrony suggests no packages.

-- no debconf information



--
To UNSUBSCRIBE, email to debian-bugs-...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listm...@lists.debian.org

Johan Haggi

unread,
Jul 8, 2012, 12:30:04 PM7/8/12
to
Fri 6 July 2012, alle 13:52 (GMT+0200), Johan Haggi ha scritto:
> [...]
> My /etc/default/rcS
> [...]
> #UTC=yes # OBSOLETE; see /etc/adjtime and hwclock(8).
> [...]

I find who modified /etc/default/rcS:
from /var/lib/dpkg/info/util-linux.postinst (util-linux 2.20.1-5.1):

# Do a one-time migration of the local time setting to /etc/adjtime
if [ -n "$2" ] && dpkg --compare-versions "$2" lt "2.20.1-5"; then
[...]
if [ -f /etc/default/rcS ]; then
sed -i -e 's:^\(UTC=.*\)$:#\1 # OBSOLETE; see /etc/adjtime and hwclock(8).:' /etc/default/rcS
fi
fi
--
Johan Haggi
signature.asc
0 new messages