Ubuntu FAI behind ftp_proxy (squid)

Holger Parplies wfai at parplies.de
Tue Jul 7 14:56:07 CEST 2009


Hi,

mettler at gmit-gmbh.de wrote on 2009-07-07 10:30:29 +0200 [Ubuntu FAI behind ftp_proxy (squid)]:
> In our network we have no gateway and no DNS server.
> All internet access is done via a Squid-proxy.
> So we need to proxy ftp over http.
> [...]
> In a running system we could just add the proxy settings like this:
> /etc/environment or /etc/bash.basrh
> ftp_proxy=http://192.168.30.42:2121
> http_proxy=http://192.168.30.42:2121
> 
> and use 'apt-get update'
> But that did not work inside the chroot during installation ;(
> 
> So we had to set ROOTCMD via a .var file to:
> ---
> ROOTCMD="chroot $target /usr/bin/env http_proxy=192.168.30.42:2121
> ftp_proxy=http://192.168.30.42:2121
> ---

why not simply set http_proxy and ftp_proxy in the .var file? That way they
should end up in the environment. Or is there a reason they can only be in
the environment inside the chroot?

Hope that helps.

Regards,
Holger


More information about the linux-fai mailing list