to choose a more or less close Debian mirror. See
http://wiki.debian.org/DebianGeoMirror for details.
+ --apt_proxy=url
+ Specify a proxy to be used by debootstrap, and within
+ the guest.
+
--template=tmpl
Specify which template file to use when creating the
Xen configuration file.
foreach my $ubuntudist (qw(edgy feisty gutsy intrepid)) {
$CONFIG{ 'mirror_'.$ubuntudist } = 'http://old-releases.ubuntu.com/ubuntu';
}
+ $CONFIG{ 'apt_proxy' } = '';
$CONFIG{ 'arch' } = '';
$CONFIG{ 'fs' } = 'ext3';
$CONFIG{ 'force' } = 0;
"kernel=s", \&checkOption,
"initrd=s", \&checkOption,
"mirror=s", \&checkOption,
+ "apt_proxy=s", \&checkOption,
"modules=s", \&checkOption,
"lvm=s", \$install{ 'lvm' },
"image-dev=s", \$install{ 'image-dev' },
}
+ #
+ # Propagate --apt_proxy
+ #
+ if ( $CONFIG{ 'apt_proxy' } )
+ {
+ $cmd .= " --apt_proxy=$CONFIG{'apt_proxy'}";
+ }
+
+
#
# Show the user what they are installing
#
--config Read the specified config file in addition to the global
configuration file.
--mirror The mirror to use when installing with 'debootstrap'.
+ --apt_proxy The proxy to use when installing with 'debootstrap'.
Installation Options:
--install-method Specify the installation method to use.
"cachedir=s", \$CONFIG{ 'cachedir' },
"config=s", \$CONFIG{ 'config' },
"mirror=s", \$CONFIG{ 'mirror' },
+ "apt_proxy=s", \$CONFIG{ 'apt_proxy' },
# Help.
"verbose", \$CONFIG{ 'verbose' },