Debian Bug report logs - #353250
util-linux: hwclock ignores UTC setting in /etc/default/rcS

version graph

Package: util-linux; Maintainer for util-linux is util-linux packagers <util-linux@packages.debian.org>; Source for util-linux is src:util-linux (PTS, buildd, popcon).

Reported by: Ron Murray <rjmx@rjmx.net>

Date: Fri, 17 Feb 2006 03:33:02 UTC

Severity: normal

Tags: patch

Merged with 220012, 426188, 443487

Found in versions util-linux/2.12r-14, util-linux/2.12r-19, util-linux/2.12r-6

Fixed in version util-linux/2.13-7

Done: LaMont Jones <lamont@debian.org>

Bug is archived. No further changes may be made.

Toggle useless messages

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to debian-bugs-dist@lists.debian.org, LaMont Jones <lamont@debian.org>:
Bug#353250; Package util-linux. (full text, mbox, link).


Acknowledgement sent to Ron Murray <rjmx@rjmx.net>:
New Bug report received and forwarded. Copy sent to LaMont Jones <lamont@debian.org>. (full text, mbox, link).


Message #5 received at submit@bugs.debian.org (full text, mbox, reply):

From: Ron Murray <rjmx@rjmx.net>
To: Debian Bug Tracking System <submit@bugs.debian.org>
Subject: util-linux: hwclock ignores UTC setting in /etc/default/rcS
Date: Thu, 16 Feb 2006 22:25:57 -0500
Package: util-linux
Version: 2.12r-6
Severity: normal


Since the recent util-linux upgrade, all five of my Debian machines
(running etch) boot up with their clocks five hours slow (i.e. the
difference between my timezone and UTC). All have "UTC=no" in
/etc/default/rcS, but the system clock is not being set to reflect
this. Worse, on reboot, the hardware clock is being set to this
incorrect time (unless I've remembered to fix it first), and on the
next reboot the system clock is even further behind.

-- System Information:
Debian Release: testing/unstable
  APT prefers testing
  APT policy: (500, 'testing'), (500, 'stable')
Architecture: i386 (i586)
Shell:  /bin/sh linked to /bin/bash
Kernel: Linux 2.6.15.4-cheops-0
Locale: LANG=C, LC_CTYPE=C (charmap=ANSI_X3.4-1968)

Versions of packages util-linux depends on:
ii  libc6         2.3.5-13                   GNU C Library: Shared libraries an
ii  libncurses5   5.5-1                      Shared libraries for terminal hand
ii  libslang2     2.0.5-3                    The S-Lang programming library - r
ii  libuuid1      1.38+1.39-WIP-2005.12.31-1 universally unique id library
ii  lsb-base      3.0-15                     Linux Standard Base 3.0 init scrip
ii  zlib1g        1:1.2.3-9                  compression library - runtime

util-linux recommends no packages.

-- no debconf information



Information forwarded to debian-bugs-dist@lists.debian.org, LaMont Jones <lamont@debian.org>:
Bug#353250; Package util-linux. (full text, mbox, link).


Acknowledgement sent to Jae-hyeon Park <jhpark@tuhep.phys.tohoku.ac.jp>:
Extra info received and forwarded to list. Copy sent to LaMont Jones <lamont@debian.org>. (full text, mbox, link).


Message #10 received at 353250@bugs.debian.org (full text, mbox, reply):

From: Jae-hyeon Park <jhpark@tuhep.phys.tohoku.ac.jp>
To: 353250@bugs.debian.org
Subject: Happens if /usr/share/zoneinfo is in a different partition than /
Date: 17 Feb 2006 19:29:23 +0900
I had the same problem.

On my system, /usr and / are on different partitions.  When
/etc/rcS.d/S22hwclock.sh copies the hardware clock to the system
clock, it cannot read the timezone information from /etc/localtime,
which is a symbolic link to a file under /usr/share/zoneinfo, since
/usr is mounted later by /etc/rcS.d/S35mountall.sh.

For a temporary fix, I did

# cd /etc/rcS.d
# mv mv S22hwclock.sh S36hwclock.sh

But I'm not sure whether or not this is a good way.



Information forwarded to debian-bugs-dist@lists.debian.org, LaMont Jones <lamont@debian.org>:
Bug#353250; Package util-linux. (full text, mbox, link).


Acknowledgement sent to hma@syd.odn.ne.jp:
Extra info received and forwarded to list. Copy sent to LaMont Jones <lamont@debian.org>. (full text, mbox, link).


Message #15 received at 353250@bugs.debian.org (full text, mbox, reply):

From: hma@syd.odn.ne.jp
To: 353250@bugs.debian.org
Subject: patch : util-linux: hwclock ignores UTC setting in /etc/default/rcS
Date: Mon, 20 Feb 2006 14:50:12 GMT
[Message part 1 (text/plain, inline)]
Hi,

I had the same problem.

/usr isn't mounted and TZ is not set when /etc/rcS.d/S*hwclock*.sh run.

What I did is to set temporal TZ variable and let scripts to see it.
I made patches which applied to:
    /etc/init.d/hwclock.sh
and
    /etc/default/rcS

--------------------------------------------------
    Takeshi Hamasaki
    E-mail: hma@syd.odn.ne.jp
[hwclock.sh.diff (application/octet-stream, inline)]
[rcS.diff (application/octet-stream, inline)]

Tags added: patch Request was from hma@syd.odn.ne.jp to control@bugs.debian.org. (full text, mbox, link).


Merged 353250 443487. Request was from LaMont Jones <lamont@debian.org> to control@bugs.debian.org. (Fri, 21 Sep 2007 23:00:07 GMT) (full text, mbox, link).


Merged 220012 353250 443487. Request was from LaMont Jones <lamont@debian.org> to control@bugs.debian.org. (Sat, 22 Sep 2007 03:51:17 GMT) (full text, mbox, link).


Merged 220012 353250 426188 443487. Request was from LaMont Jones <lamont@debian.org> to control@bugs.debian.org. (Sat, 22 Sep 2007 04:03:06 GMT) (full text, mbox, link).


Bug archived. Request was from Debbugs Internal Request <owner@bugs.debian.org> to internal_control@bugs.debian.org. (Thu, 25 Oct 2007 07:26:06 GMT) (full text, mbox, link).


Send a report that this bug log contains spam.


Debian bug tracking system administrator <owner@bugs.debian.org>. Last modified: Sun Jun 4 23:07:13 2023; Machine Name: buxtehude

Debian Bug tracking system

Debbugs is free software and licensed under the terms of the GNU Public License version 2. The current version can be obtained from https://bugs.debian.org/debbugs-source/.

Copyright © 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson, 2005-2017 Don Armstrong, and many other contributors.