From a0d0472b2003fff4db684564734b8375f8f5d899 Mon Sep 17 00:00:00 2001 From: steve Date: Sun, 18 Dec 2005 19:07:19 +0000 Subject: [PATCH] 2005-12-18 19:07:19 by steve Updated so that the $MIRROR is gone. --- xen-create-image | 25 +++++++++---------------- 1 file changed, 9 insertions(+), 16 deletions(-) diff --git a/xen-create-image b/xen-create-image index d1aa2df..3c3d4b9 100755 --- a/xen-create-image +++ b/xen-create-image @@ -187,7 +187,7 @@ broadcast = 255.255.255.0 -- http://www.steve.org.uk/ - $Id: xen-create-image,v 1.16 2005-12-18 19:05:58 steve Exp $ + $Id: xen-create-image,v 1.17 2005-12-18 19:07:19 steve Exp $ =cut @@ -228,13 +228,6 @@ my %CONFIG; my $DIR; # Mandatory. -# -# Either *all* the relevent networking options must be setup, or -# DHCP must be selected. -# -# -my $MIRROR="http://ftp.us.debian.org/debian"; # set with '--mirror=http://www.etc.com"' - # @@ -265,7 +258,7 @@ $CONFIG{'memory'} = '96Mb'; $CONFIG{'size'} = '2000Mb'; $CONFIG{'swap'} = '128M'; $CONFIG{'fs'} = 'ext3'; - +$CONFIG{'mirror'} = 'http://ftp.us.debian.org/debian'; # # Read configuration file(s) if they exist. @@ -382,7 +375,7 @@ if ( ! $mount =~ /$image/) { # Install the base system. # print "Running debootstrap to install the system. This will take a while!\n"; -`debootstrap sarge $dir $MIRROR`; +`debootstrap sarge $dir $CONFIG{'mirror'}`; print "Done\n"; # @@ -404,7 +397,7 @@ print APT<