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