debian-installer preseed "d-i mirror/http/proxy" sets env http_proxy
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
debian-installer (Debian) |
New
|
Unknown
|
|||
debian-installer (Ubuntu) |
Triaged
|
Wishlist
|
Unassigned |
Bug Description
Binary package hint: debian-installer
Description: Ubuntu lucid (development branch)
Release: 10.04
In my preseed file I set "d-i mirror/http/proxy string http://
I expect "d-i mirror/http/proxy" to only apply to the debian installer http proxy (apt proxy), and all other http applications, e.g., wget, curl, lynx to not use that setting.
Instead when I run applications from the Kickstart %post section, all HTTP connections are proxied; curl, wget, lynx, hg (mercurial), everything. Once the system installs and reboots all is good, the only remanence of the mirror/http/proxy setting is in /etc/apt/apt.conf, which is fine (though I think that should be configurable too). mirror/http/proxy is setting the environment variable http_proxy.
Repo:
Set "d-i mirror/http/proxy string http://
Use a Kickstart post section like this:
%post --interpreter=
exec < /dev/tty3 > /dev/ttyS0
chvt 3
(
echo "## http_proxy = $http_proxy"
echo "## lynx dump head"
lynx -dump -head http://
echo "## wget"
wget -O /root/test http://
) 2>&1 | /usr/bin/tee /var/log/
chvt 1
After install check /var/log/
## http_proxy = http://
## lynx dump head
HTTP/1.1 403 Forbidden file type or location
Date: Thu Apr 22 16:29:10 2010
Server: Debian Apt-Cacher NG/0.4.6
## wget
--2010-04-22 09:29:10-- http://
Resolving apt-cacher... 10.0.0.10
Connecting to apt-cacher|
Proxy request sent, awaiting response... 403 Forbidden file type or location
2010-04-22 09:29:10 ERROR 403: Forbidden file type or location.
The workaround for me it to reset $http_proxy at the top of %post:
export http_proxy=""
Then all the applications that use http behave normally.
Suggestion:
Don't set $http_proxy with "d-i mirror/http/proxy", maybe set $apt_http_proxy if d-i needs an environment variable. For users that need a general proxy a setting like "d-i http/proxy" could be created.
Changed in debian-installer (Ubuntu): | |
status: | New → Triaged |
importance: | Undecided → Wishlist |
Changed in debian-installer (Debian): | |
status: | Unknown → New |
information type: | Public → Public Security |
information type: | Public Security → Public |
I am also seeing this error on Debian Squeeze (debian 6) on i386 when I use Debian Installer.
If the Debian / Ubuntu folks want to save a lot of traffic on their public mirrors, it makes sense to fix this bug.
I am about to run hundreds of nodes worth of installs with about 600 packages - if you'd like me to hit your
ftp.us.debian.org an order of magnitude less, give me a way to do so with preseed!!!
thanks,
Matt