1
0
mirror of synced 2026-02-26 16:23:27 +00:00

2006-03-11 21:43:52 by steve

Setup environment prior to running the xen .cfg hook
This commit is contained in:
steve
2006-03-11 21:43:52 +00:00
parent 4dcbb4ba09
commit 163ca8df21

View File

@@ -122,7 +122,7 @@ Specify the LVM volume where images are to go
--
http://www.steve.org.uk/
$Id: xen-duplicate-image,v 1.28 2006-03-11 21:39:52 steve Exp $
$Id: xen-duplicate-image,v 1.29 2006-03-11 21:43:52 steve Exp $
=cut
@@ -317,6 +317,20 @@ setupNetworking( $dir );
if ( -x "/etc/xen-tools/hook.d/95-create-cfg" )
{
print "Setting up Xen configuration file .. ";
#
# Setup environment for child hook
#
foreach my $key ( keys %CONFIG )
{
if ( defined( $CONFIG{$key} ) )
{
$ENV{$key} = $CONFIG{$key};
}
}
$ENV{'imagevbd'} = "file:" . $image_out;
$ENV{'swapvbd'} = "file:" . $swap_out;
`/etc/xen-tools/hook.d/95-create-cfg`;
}
else
@@ -447,7 +461,7 @@ sub parseCommandLineArguments
if ( $VERSION )
{
my $REVISION = '$Revision: 1.28 $';
my $REVISION = '$Revision: 1.29 $';
if ( $REVISION =~ /1.([0-9.]+) / )
{