2007-03-01 10:17:50 by steve
Commit the correct core.
This commit is contained in:
parent
cbb439020e
commit
2c772ad9f6
@ -80,7 +80,7 @@ Untar a .tar file into the new installation location. This tarfile is assumed t
|
||||
--
|
||||
http://www.steve.org.uk/
|
||||
|
||||
$Id: xt-install-image,v 1.50 2007-03-01 10:12:59 steve Exp $
|
||||
$Id: xt-install-image,v 1.51 2007-03-01 10:17:50 steve Exp $
|
||||
|
||||
=cut
|
||||
|
||||
@ -414,7 +414,7 @@ sub parseCommandLineArguments
|
||||
|
||||
if ( $VERSION )
|
||||
{
|
||||
my $REVISION = '$Revision: 1.50 $';
|
||||
my $REVISION = '$Revision: 1.51 $';
|
||||
if ( $REVISION =~ /1.([0-9.]+) / )
|
||||
{
|
||||
$REVISION = $1;
|
||||
@ -779,7 +779,17 @@ sub do_image_server
|
||||
#
|
||||
my $request = $CONFIG{'install-source'} . "/create.cgi?submit=1";
|
||||
|
||||
foreach my $k ( keys %ENV )
|
||||
#
|
||||
# Some parameters are hard-wired.
|
||||
#
|
||||
$request .= "&arch=xen";
|
||||
$request .= "&root_device=/dev/sda";
|
||||
$request .= "&ip1=" . $ENV{'ip'};
|
||||
|
||||
#
|
||||
# We only care about some keys
|
||||
#
|
||||
foreach my $k ( qw/ dhcp broadcast gateway hostname netmask / )
|
||||
{
|
||||
# Skip values which aren't defined.
|
||||
next unless defined $ENV{$k};
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user