Your message dated Wed, 27 Feb 2013 15:17:32 +0000
with message-id <[email protected]>
and subject line Bug#701800: fixed in lxc 0.9.0~alpha3-1
has caused the Debian Bug report #701800,
regarding lxc-debian template script ignores tzdata selections in preseed file
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact [email protected]
immediately.)


-- 
701800: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=701800
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
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

--- End Message ---
--- Begin Message ---
Source: lxc
Source-Version: 0.9.0~alpha3-1

We believe that the bug you reported is fixed in the latest version of
lxc, which is due to be installed in the Debian FTP archive.

A summary of the changes between this version and the previous one is
attached.

Thank you for reporting the bug, which will now be closed.  If you
have further comments please address them to [email protected],
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Daniel Baumann <[email protected]> (supplier of updated 
lxc package)

(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing [email protected])


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Format: 1.8
Date: Wed, 27 Feb 2013 14:04:06 +0100
Source: lxc
Binary: lxc lxc-dbg lxc-dev
Architecture: source i386
Version: 0.9.0~alpha3-1
Distribution: unstable
Urgency: low
Maintainer: Daniel Baumann <[email protected]>
Changed-By: Daniel Baumann <[email protected]>
Description: 
 lxc        - Linux Containers userspace tools
 lxc-dbg    - Linux Containers userspace tools (debug)
 lxc-dev    - Linux Containers userspace tools (development)
Closes: 701689 701800
Changes: 
 lxc (0.9.0~alpha3-1) unstable; urgency=low
 .
   * Updating handling of mount entries to work to do the right thing when
     files are being tried to be bind-mounted instead of directories.
   * Merging upstream version 0.9.0~alpha3.
   * Adding --with-distro=debian when calling configure.
   * Extending manual hack to workaround broken preseeding in tzdata
     (Closes: #701800).
   * Dropping bash.patch, not required anymore.
   * Adding patch for lxc-create to not try to execute directories as
     templates should the user have such a situation and specify it
     (wrongly) (Closes: #701689).
   * Rediffing lxc-clone-mac.patch.
   * Currently hardcoding lxc directory.
   * Defaulting to sysvinit for the time being on progress-linux.
   * Updating todo file.
Checksums-Sha1: 
 c78daa3b12e3750bd2f177e18039e670c1e0dc4d 1294 lxc_0.9.0~alpha3-1.dsc
 13a0488d9136c0c19e190ba9fefc8ce038ce82e4 275952 lxc_0.9.0~alpha3.orig.tar.xz
 7fc4d8cc071db67681456aa89468be855d844199 42148 lxc_0.9.0~alpha3-1.debian.tar.xz
 2f06d06cc0c977a2c4a419f973560920407dc17d 212586 lxc_0.9.0~alpha3-1_i386.deb
 516776eb3bcbef52aeb65d484c014b0951b7a112 328688 lxc-dbg_0.9.0~alpha3-1_i386.deb
 70633cb0b48d52447573cf92c8e66b73cd9cbd4a 26428 lxc-dev_0.9.0~alpha3-1_i386.deb
Checksums-Sha256: 
 daaa95bd32392d52932c249ca411fb7365026afbb9990185944c721359c731df 1294 
lxc_0.9.0~alpha3-1.dsc
 67a2051aef6d859a485a30b9a615e32549f54d25240a74e972edd8d0ac21bad2 275952 
lxc_0.9.0~alpha3.orig.tar.xz
 8df22cdc9683243b2448c1048d64fa2b0b6a5715a786ac610078bab658b1f8ee 42148 
lxc_0.9.0~alpha3-1.debian.tar.xz
 5df0d166e7e353c2cdad9aee2689f641f1a003068c10008722f6529900cefc50 212586 
lxc_0.9.0~alpha3-1_i386.deb
 f0a5526e4fa04145787939aff4cd15decf345965b95169f26fc900a0dbf9e547 328688 
lxc-dbg_0.9.0~alpha3-1_i386.deb
 94f587e56e2c41edda56999784c9a4390818cf50030b81f413abb93dd2a85803 26428 
lxc-dev_0.9.0~alpha3-1_i386.deb
Files: 
 cbe0cf18222c88c45f2c8547f12b7054 1294 admin optional lxc_0.9.0~alpha3-1.dsc
 33689d57596329006bff40570028747e 275952 admin optional 
lxc_0.9.0~alpha3.orig.tar.xz
 3ba0560e655c4e80c702a254986a69f6 42148 admin optional 
lxc_0.9.0~alpha3-1.debian.tar.xz
 7de5fab6c288b1f971f9af8f8fcc7d49 212586 admin optional 
lxc_0.9.0~alpha3-1_i386.deb
 81372784b0642c9cca28f673e5f22cce 328688 debug extra 
lxc-dbg_0.9.0~alpha3-1_i386.deb
 097a810d1e7d97f67527be7b470e4f3a 26428 libdevel optional 
lxc-dev_0.9.0~alpha3-1_i386.deb

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.12 (GNU/Linux)

iEYEARECAAYFAlEuIccACgkQ+C5cwEsrK54+tQCbB/lujs9Bmn44lNyLnDi2EF5t
SecAni3s1OKYHutNV8f/sMMn/L/JPSNi
=EoD0
-----END PGP SIGNATURE-----

--- End Message ---

Reply via email to