1
0
mirror of synced 2026-01-20 09:34:58 +00:00

2006-06-09 20:14:50 by steve

Create the xen-configuration file once we're done.
This commit is contained in:
steve 2006-06-09 20:14:50 +00:00
parent ea13ca04dc
commit 71c40fc5c5

View File

@ -31,7 +31,7 @@ xen-create-image - Create a new Xen instance
--
http://www.steve.org.uk/
$Id: xen-create-image,v 1.13 2006-06-09 18:36:10 steve Exp $
$Id: xen-create-image,v 1.14 2006-06-09 20:14:50 steve Exp $
=cut
@ -164,6 +164,11 @@ installSystem();
runCustomisationHooks();
#
# Create the Xen configuration file.
#
runXenConfigCreation();
#
# Unmount the disk image, and remove the temporary directory.
#
@ -389,7 +394,7 @@ sub parseCommandLineArguments
if ( $VERSION )
{
my $REVISION = '$Revision: 1.13 $';
my $REVISION = '$Revision: 1.14 $';
if ( $REVISION =~ /1.([0-9.]+) / )
{
@ -877,6 +882,24 @@ sub runCustomisationHooks
=head2 runXenConfigCreation
Create the Xen configuration file.
=cut
sub runXenConfigCreation
{
my $command = '/usr/bin/xt-create-xen-config --output=/etc/xen';
print "\nCreating Xen configuration file\n";
runCommand( $command );
print "Done\n";
}
=head2 runCommand
A utility method to run a system command. We will capture the return