Subject: xen-tools: xen-create-image never finishes when behind a http proxy
Package: xen-tools
Version: 2.2-3
Severity: important
*** Please type your report below this line ***
/usr/lib/xen-tools/debian.d/20-setup-apt creates a
canned /etc/apt/sources.list with 4 repo lines. The first 2 are
${mirror} which in my case I set in /etc/xen-tools/xen-tools.conf to a
local apt-cacher that knows about the http proxy. However the last 2
repo lines are security.debian.org ones. Later 20-setup-apt runs apt-get
update. As the box can't connect directly to the Internet the process
just sits there timing out.
When the setup scripts were in /etc/xen-tools/hooks.d, I created a
19-setup-apt-proxy that created /etc/apt/apt.conf.d/10proxy:
Acquire::http::Proxy "http://wwwcache:3128"
This meant that apt knew about the proxy, which worked fine.
I considered using /etc/xen-tools/skel instead, but skel is not copied
till 65-copy-user-files is run.
I suggest either a more configurable 20-setup-apt, so that I can change
the security.debian.org lines to point at my apt-casher. Or implement a
19-setup-apt-proxy. Or have I missed the obvious way to do custom
modifications/overrides for /usr/lib/xen-tools/debian.d?
Something like this:
#!/bin/sh
#
# This script sets up the /etc/apt/apt.conf.d/10proxy for APT.
#
prefix=$1
cat <<E_O_APT > ${prefix}/etc/apt/apt.conf.d/10proxy
Acquire::http::Proxy "$proxy";
E_O_APT
-- System Information:
Debian Release: testing/unstable
APT prefers testing
APT policy: (400, 'testing'), (300, 'unstable')
Architecture: i386 (i686)
Shell: /bin/sh linked to /bin/bash
Kernel: Linux 2.6.16-2-xen-686
Locale: LANG=en_GB, LC_CTYPE=en_GB (charmap=ISO-8859-1)
Versions of packages xen-tools depends on:
ii debootstrap 0.3.3 Bootstrap a basic Debian system
ii libtext-template-perl 1.44-1.1 Text::Template perl module
ii perl-modules 5.8.8-4 Core Perl modules
Versions of packages xen-tools recommends:
pn reiserfsprogs <none> (no description available)
pn rpmstrap <none> (no description available)
ii xen-hypervisor-3.0-i386 [ 3.0.2+hg9697-1 The Xen Hypervisor for i386
ii xen-hypervisor-3.0-i386-p 3.0.2+hg9697-1 The Xen Hypervisor for i386 (pae e
pn xfsprogs <none> (no description available)
-- no debconf information
--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]