Signed-off-by: Ian Jackson <ian.jackson@eu.citrix.com>
$c{$_}='' foreach qw(
DebianPreseed
+ DebianMirrorProxy
TftpPxeTemplatesReal
);
$c{GuestDebianSuite} ||= $c{DebianSuite};
$c{DefaultBranch} ||= 'xen-unstable';
+
+ $c{DebianMirrorHost} ||= 'ftp.debian.org' if $c{DebianMirrorProxy};
}
sub augmentconfigdefaults {
d-i cdrom-detect/eject boolean false
d-i mirror/http/hostname string $c{DebianMirrorHost}
+d-i mirror/http/proxy string $c{DebianMirrorProxy}
d-i mirror/http/directory string /$c{DebianMirrorSubpath}
d-i apt-setup/use_mirror boolean yes
d-i apt-setup/another boolean false
DebianMirrorHost
Domain name or address of the Debian mirror to use.
Set DebianMirrorSubpath to the path inside the mirror if
- your mirror isn't at http://<DebianMirrorHost>/debian/
+ your mirror isn't at http://<DebianMirrorHost>/debian/ .
+ Defaults to ftp.debian.org if DebianMirrorProxy is set.
+
+DebianMirrorProxy
+ The apt proxy to specify for Debian (and derivatives),
+ eg http://apt-cacher:3142/ .
TestHost <hostname>
TestHost_<ident> <hostname>