I've also tried the following pre-installation script, but it has no
effect there. The same modification does get APT to use the proxy/cache
after the installation is completed.
# %pre
cat << "PROXY" > /etc/apt/apt.conf
Acquire
{
Queue-Mode "host"; // host|access
Retries "0";
Source-Symlinks "true";
// HTTP method configuration
http
{
Proxy "http://192.168.222.1:8080";
Timeout "120";
Pipeline-Depth "5";
// Cache Control. Note these do not work with Squid 2.0.2
No-Cache "false";
Max-Age "86400"; // 1 Day age on index files
No-Store "false"; // Prevent the cache from storing archives
Dl-Limit "7"; // 7Kb/sec maximum download rate
};
};
PROXY
--
kickstart doesn't export environment variables from %pre
https://bugs.launchpad.net/bugs/134432
You received this bug notification because you are a member of Ubuntu
Bugs, which is the bug contact for Ubuntu.
--
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs