Package: lxc Version: 0.7.5-13 Severity: wishlist Hi, The patch attached will add proxy support for chroot in lxc-debconf. The consecutive configure steps (like upgrade) will fail in company setups with internet access by proxies only. Regards, Marcus
-- System Information: Debian Release: 6.0.3 APT prefers stable APT policy: (500, 'stable') Architecture: amd64 (x86_64) Kernel: Linux 2.6.39-bpo.2-amd64 (SMP w/1 CPU core) Locale: LANG=de_DE.UTF-8, LC_CTYPE=de_DE.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.36.1 Debian configuration management sy ii libc6 2.11.2-10 Embedded GNU C Library: Shared lib ii libcap2 1:2.19-3 support for getting/setting POSIX. Versions of packages lxc recommends: ii debootstrap 1.0.26+squeeze1 Bootstrap a basic Debian system ii libcap2-bin 1:2.19-3 basic utility programs for using c Versions of packages lxc suggests: pn lxctl <none> (no description available) -- debconf information: lxc/shutdown: stop lxc/directory: /var/lib/lxc lxc/title: lxc/auto: true
>From 00d9b4cd4f620114d5a766b970914a7330e6b84d Mon Sep 17 00:00:00 2001 From: Marcus Osdoba <marcus.osd...@googlemail.com> Date: Thu, 8 Dec 2011 23:44:48 +0100 Subject: [PATCH] lxc-debconf: add proxy support and default LANG for setup via chroot when chroot'ing on the commandline, the chroot-environment inherits the environment variables like ftp_ and http_proxy, if the container is setup behind a firewall the hosts apt system knows it's proxies, but when upgrading and running other chroot commands from lxc-debconf this information is lost the basic setup with "dpkg-configure -a" does not set a default language and locale, this results in many warnings when setting up the container during the package configure step, it's safe to set the language to "C" for the early steps in the lxc-debconf process Signed-off-by: Marcus Osdoba <marcus.osd...@googlemail.com> --- debian/local/lxc-debconf | 2 ++ 1 files changed, 2 insertions(+), 0 deletions(-) diff --git a/debian/local/lxc-debconf b/debian/local/lxc-debconf index bc0a09e..806742c 100755 --- a/debian/local/lxc-debconf +++ b/debian/local/lxc-debconf @@ -8,6 +8,8 @@ Chroot () chroot "${_CHROOT}" /usr/bin/env -i \ PATH="/usr/sbin:/usr/bin:/sbin:/bin" TERM="${TERM}" \ DEBIAN_FRONTEND="${_DEBCONF_FRONTEND}" DEBIAN_PRIORITY="${_DEBCONF_PRIORITY}" \ + LC_ALL="C" LANGUAGE="C" LANG="C" \ + ftp_proxy="${ftp_proxy}" http_proxy="${http_proxy}" \ ${@} } -- 1.7.2.5