[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#648545: live-config: tzdata script incomplete



Package: live-config
Version: 2.0.15-1
Severity: important
Tags: squeeze sid

Hi Live-Team,

I spotted another incompatibility between a .deb and how the Live system is
handling its behaviour (similar to live vs. dwww).

Usually I boot my live-systems so that LIVE_TIMEZONE="Europe/Berlin" gets set
(via cmdline or /etc/live/config.d depending on the use-case, but not the point
here). Just a few days ago it so happened that the tzdata package got updated
and the whole dpkg configure shabang was invoked...which sadly left me with UTC
set as my current timezone. What happened?

On the one hand, tzdata politely stores the options selected during e.g.
'dpkg-reconfigure tzdata' in the debconf db (and I had the correct settings for
Europe/Berlin pre-seeded during creation of the live image). However on the
next invocation, those selections only get applied to cities, not continents.
When selecting a new continent, say Asia instead of Europe, then a city
selected in a previous run of reconfigure gets pre-selected again. What happens
when run with --frontend=non-interactive is a whole other story and completely
independent of debconf: the debconf selections have no impact whatsoever and
whatever tuple of continent/city is stored in /etc/timezone determines which tz
data get copied to /etc/localtime.

So here's the thing: live-config's 005-tzdata (squeeze) or 006-tzdata (live-*
3.x) handles the actual copying of tzdata and setting the pre-selections in
debconf DB but not the /etc/timezone file.


Solution 1: 00[56]-tzdata echo's LIVE_TIMEZONE to /etc/timezone

Solution 2: tzdata changes its behaviour to mind debconf DB instead of
/etc/timezone


Which one is appropriate? Your thoughts?


Cheers
Daniel



-- System Information:
Debian Release: 6.0.3
  APT prefers stable
  APT policy: (990, 'stable'), (500, 'stable-updates')
Architecture: amd64 (x86_64)

Kernel: Linux 2.6.32-5-dhr-amd64 (SMP w/2 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash

Versions of packages live-config depends on:
ii  live-config-sysvinit [live-co 2.0.15-1   Debian Live - System Configuration

Versions of packages live-config recommends:
ii  sudo                 1.7.4p4-2.squeeze.2 Provide limited super user privile
ii  user-setup           1.38                Set up initial user and password

Versions of packages live-config suggests:
ii  wget                          1.12-2.1   retrieves files from the web

-- no debconf information



Reply to: