From 4890ba9c97d9251f4e800a353c40140aee7026c8 Mon Sep 17 00:00:00 2001 From: steve Date: Fri, 18 Aug 2006 13:16:55 +0000 Subject: [PATCH] 2006-08-18 13:16:55 by steve Use hostname when installing system. --- bin/xen-create-image | 6 +++--- bin/xt-install-image | 5 +++-- 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/bin/xen-create-image b/bin/xen-create-image index c74dcf1..9637b55 100755 --- a/bin/xen-create-image +++ b/bin/xen-create-image @@ -446,7 +446,7 @@ Install an X11 server, using VNC and XDM -- http://www.steve.org.uk/ - $Id: xen-create-image,v 1.79 2006-08-18 13:14:14 steve Exp $ + $Id: xen-create-image,v 1.80 2006-08-18 13:16:55 steve Exp $ =cut @@ -939,7 +939,7 @@ sub parseCommandLineArguments if ( $VERSION ) { - my $REVISION = '$Revision: 1.79 $'; + my $REVISION = '$Revision: 1.80 $'; if ( $REVISION =~ /1.([0-9.]+) / ) { @@ -1719,7 +1719,7 @@ sub installSystem # # Basic command # - my $cmd = "/usr/bin/xt-install-image --location=$MOUNT_POINT --dist=$CONFIG{'dist'}"; + my $cmd = "/usr/bin/xt-install-image --hostname=$CONFIG{'hostname'} --location=$MOUNT_POINT --dist=$CONFIG{'dist'}"; # # Add on the current cache setting diff --git a/bin/xt-install-image b/bin/xt-install-image index 213a0d6..e440265 100755 --- a/bin/xt-install-image +++ b/bin/xt-install-image @@ -80,7 +80,7 @@ Install the distribution specified by the B<--dist> argument using the debootstr -- http://www.steve.org.uk/ - $Id: xt-install-image,v 1.29 2006-08-18 13:11:48 steve Exp $ + $Id: xt-install-image,v 1.30 2006-08-18 13:16:55 steve Exp $ =cut @@ -212,6 +212,7 @@ sub parseCommandLineArguments # Mandatory "location=s", \$CONFIG{'location'}, "dist=s", \$CONFIG{'dist'}, + "hostname=s", \$CONFIG{'hostname'}, # Exclusive. "tar=s", \$CONFIG{'tar'}, @@ -237,7 +238,7 @@ sub parseCommandLineArguments if ( $VERSION ) { - my $REVISION = '$Revision: 1.29 $'; + my $REVISION = '$Revision: 1.30 $'; if ( $REVISION =~ /1.([0-9.]+) / ) {