Package: util-linux
Version: 2.20.1-1.2
Severity: important
Tags: patch

initscripts is splitting the UTC setting out of /etc/default/rcS
into /etc/default/hwclock.  This has already been fixed in d-i,
but needs support in hwclock.sh.  A patch to implement this is
attached.  Please could you apply and upload?


Thanks,
Roger

-- System Information:
Debian Release: wheezy/sid
  APT prefers unstable
  APT policy: (550, 'unstable'), (500, 'testing'), (400, 'experimental')
Architecture: amd64 (x86_64)

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

Versions of packages util-linux depends on:
ii  debconf [debconf-2.0]  1.5.41
ii  dpkg                   1.16.2~wipmultiarch
ii  initscripts            2.88dsf-23
ii  install-info           4.13a.dfsg.1-8
ii  libblkid1              2.20.1-1.2
ii  libc6                  2.13-26
ii  libncurses5            5.9-4
ii  libselinux1            2.1.0-4.1
ii  libslang2              2.2.4-6
ii  libtinfo5              5.9-4
ii  libuuid1               2.20.1-1.2
ii  lsb-base               3.2-28.1
ii  tzdata                 2011n-2
ii  zlib1g                 1:1.2.6.dfsg-1

util-linux recommends no packages.

Versions of packages util-linux suggests:
pn  dosfstools          3.0.12-1
pn  kbd                 1.15.3-7
pn  util-linux-locales  <none>

-- debconf information excluded
>From 9e27f2df1cbc3227428bfa2f2d729bf4213d5559 Mon Sep 17 00:00:00 2001
From: Roger Leigh <rle...@debian.org>
Date: Sun, 12 Feb 2012 21:11:37 +0000
Subject: [PATCH] debian: hwclock.sh sources /etc/default/hwclock

If present, /etc/default/hwclock will be sourced in addition
to /etc/default/rcS.  UTC is set in /etc/default/hwclock and
this supersedes and overrides any use in /etc/default/rcS.
---
 debian/hwclock-set |    3 +++
 debian/hwclock.sh  |    1 +
 2 files changed, 4 insertions(+), 0 deletions(-)

diff --git a/debian/hwclock-set b/debian/hwclock-set
index fc1698f..8a3ae74 100644
--- a/debian/hwclock-set
+++ b/debian/hwclock-set
@@ -11,6 +11,9 @@ fi
 if [ -f /etc/default/rcS ] ; then
     . /etc/default/rcS
 fi	
+if [ -f /etc/default/hwclock ] ; then
+    . /etc/default/hwclock
+fi
 
 if [ yes != "$UTC" ] ; then
     if [ yes = "$BADYEAR" ] ; then
diff --git a/debian/hwclock.sh b/debian/hwclock.sh
index 1427bac..d542a55 100644
--- a/debian/hwclock.sh
+++ b/debian/hwclock.sh
@@ -38,6 +38,7 @@ hwclocksh()
 {
     [ ! -x /sbin/hwclock ] && return 0
     [ ! -r /etc/default/rcS ] || . /etc/default/rcS
+    [ ! -r /etc/default/hwclock ] || . /etc/default/hwclock
 
     . /lib/lsb/init-functions
     verbose_log_action_msg() { [ "$VERBOSE" = no ] || log_action_msg "$@"; }
-- 
1.7.9

Reply via email to