Comment 7 for bug 132397

Revision history for this message
Vagrant Cascadian (vagrantc) wrote :

i think it would be risky to copy all apt configuration files into the chroot environment. some programs drop files into /etc/apt/apt.conf.d that may behave undesireably if not installed in the chroot.

there are so many possible settings in /etc/apt/apt.conf and /etc/apt/apt.conf.d/* ... there's a moderate possibility you might pull something undesired into the chroot environment.

for grabbing the proxy setting, we could do something like:

  http_proxy=$(apt-config dump | egrep Acquire::http::Proxy | sed -e 's,^Acquire::http::Proxy ",,g' | tr '";' ' ')

and if http_proxy is set, dump it into the chroot's /etc/apt/apt.conf.d/proxy-guess-ltsp near the end of the install.

something like that, more or less...

live well,
  vagrant