Package: lxc
Version: 0.9.0~alpha2-10
Severity: normal
Tags: patch

Dear Maintainer,

There is the problem with tzdata package preseeding in debian (debconfig) 
template.

My preseed.cfg file contains these selections among others:
######################################
tzdata tzdata/Areas select Europe
tzdata tzdata/Zones/Europe select Kiev
######################################

I had create new container with this command:

sudo lxc-create -n debian -t debian -- 
--preseed-file=/home/denys/Work/lxc/preseed.cfg

But default time zone in the container was set to 'Etc/UTC'.

debconf-show tzdata
  tzdata/Zones/Australia:
  tzdata/Zones/US:
  tzdata/Zones/Asia:
* tzdata/Zones/Etc: UTC
  tzdata/Zones/SystemV:
  tzdata/Zones/Africa:
  tzdata/Zones/America:
  tzdata/Zones/Arctic:
  tzdata/Zones/Pacific:
* tzdata/Areas: Etc
  tzdata/Zones/Antarctica:
  tzdata/Zones/Atlantic:
* tzdata/Zones/Europe: Kiev
  tzdata/Zones/Indian:

Previous selection was overriden.
I have found that dpkg-reconfigure actually prefers settings in '/etc/timezone' 
over debconf answers.
Removing the file and reconfiguring tzdata package again fixes timezone 
configuration.

This patch implements my solution:

--- lxc-debian~ 2013-02-09 09:12:29.000000000 +0200
+++ lxc-debian 2013-02-27 12:32:21.317699113 +0200
@@ -262,6 +262,7 @@
 # FIXME: All packages of priority of essential need to be reconfigured to 
reflect choices from preseeding
 if grep -qs tzdata "${_PRESEED_FILE}"
 then
+Chroot "${_ROOTFS}" "rm -f /etc/timezone"
 Chroot "${_ROOTFS}" "DEBIAN_FRONTEND=noninteractive DEBIAN_PRIORITY=criticial 
dpkg-reconfigure tzdata"
 fi


For now debian template considers tzdata preseeding.


-- System Information:
Debian Release: 7.0
  APT prefers testing
  APT policy: (500, 'testing')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

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

Versions of packages lxc depends on:
ii  debconf [debconf-2.0]  1.5.49
ii  libapparmor1           2.7.103-4
ii  libc6                  2.13-38
ii  libcap2                1:2.22-1.2
ii  multiarch-support      2.13-38

Versions of packages lxc recommends:
ii  debootstrap  1.0.44
ii  libcap2-bin  1:2.22-1.2

Versions of packages lxc suggests:
pn  debian-keyring      <none>
ii  gpgv                1.4.12-7
pn  live-debconfig-doc  <none>
ii  rsync               3.0.9-4

-- debconf information excluded


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

Reply via email to