Package: lxc
Version: 0.7.2-1
Severity: normal
Tags: patch

/usr/lib/lxc/templates/lxc-debian hard-codes the distribution (lenny) and
mirror (http://ftp.debian.org/debian), with no way to override it.

since it's probably typically called from lxc-create, and lxc-create doesn't
yet provide a mechanism to pass additional information, if it could at least
use variables and get the defaults from a file from /etc, that would be great:

Index: lxc-0.7.2/templates/lxc-debian.in
===================================================================
--- lxc-0.7.2.orig/templates/lxc-debian.in      2010-10-25 14:57:19.000000000 
-0700
+++ lxc-0.7.2/templates/lxc-debian.in   2010-10-25 15:01:23.000000000 -0700
@@ -110,7 +110,7 @@
     echo "Downloading debian minimal ..."
     debootstrap --verbose --variant=minbase --arch=$arch \
        --include $packages \
-       lenny $cache/partial-$arch http://ftp.debian.org/debian
+       ${DEBIAN_DIST:-"lenny"} $cache/partial-$arch 
${DEBIAN_MIRROR:-"http://ftp.debian.org/debian"}
     if [ $? -ne 0 ]; then
        echo "Failed to download the rootfs, aborting."
        return 1
@@ -256,6 +256,10 @@
 fi
 eval set -- "$options"
 
+if [ -f /etc/lxc/debian.conf ]; then
+    . /etc/lxc/debian.conf
+fi
+
 while true
 do
     case "$1" in


live well,
  vagrant


-- System Information:
Debian Release: squeeze/sid
  APT prefers testing
  APT policy: (500, 'testing'), (500, 'stable'), (102, 'unstable'), (101, 
'experimental')
Architecture: i386 (i686)

Kernel: Linux 2.6.32-5-686 (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/dash

Versions of packages lxc depends on:
ii  libc6                  2.11.2-6+squeeze1 Embedded GNU C Library: Shared lib
ii  libcap2                1:2.19-3          support for getting/setting POSIX.

Versions of packages lxc recommends:
ii  libcap2-bin                   1:2.19-3   basic utility programs for using c

lxc suggests no packages.

-- no debconf information



-- 
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