2006-06-15 07:35:09 by steve
Whitespace + formatting fixups.
This commit is contained in:
@@ -394,7 +394,7 @@ Install an X11 server, using VNC and XDM
|
||||
--
|
||||
http://www.steve.org.uk/
|
||||
|
||||
$Id: xen-create-image,v 1.27 2006-06-15 07:31:49 steve Exp $
|
||||
$Id: xen-create-image,v 1.28 2006-06-15 07:35:09 steve Exp $
|
||||
|
||||
=cut
|
||||
|
||||
@@ -782,7 +782,7 @@ sub parseCommandLineArguments
|
||||
|
||||
if ( $VERSION )
|
||||
{
|
||||
my $REVISION = '$Revision: 1.27 $';
|
||||
my $REVISION = '$Revision: 1.28 $';
|
||||
|
||||
if ( $REVISION =~ /1.([0-9.]+) / )
|
||||
{
|
||||
@@ -882,32 +882,32 @@ sub checkFilesPresent
|
||||
|
||||
foreach my $file ( @required )
|
||||
{
|
||||
if ( -x $file )
|
||||
{
|
||||
print "The following binary is required to run this tool\n";
|
||||
print "\t$file\n";
|
||||
exit;
|
||||
}
|
||||
|
||||
if ( -x $file )
|
||||
{
|
||||
print "The following binary is required to run this tool\n";
|
||||
print "\t$file\n";
|
||||
exit;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
#
|
||||
# LVM specific binaries
|
||||
#
|
||||
if ( $CONFIG{'lvm'} )
|
||||
{
|
||||
my @lvm = qw ( /sbin/lvcreate );
|
||||
my @lvm = qw ( /sbin/lvcreate );
|
||||
|
||||
foreach my $file ( @lvm )
|
||||
{
|
||||
if ( -x $file )
|
||||
{
|
||||
print "The following binary is required to run this tool\n";
|
||||
print "\t$file\n";
|
||||
print "(This is only required for LVM volumes, which you've selected)\n";
|
||||
exit;
|
||||
}
|
||||
}
|
||||
foreach my $file ( @lvm )
|
||||
{
|
||||
if ( -x $file )
|
||||
{
|
||||
print "The following binary is required to run this tool\n";
|
||||
print "\t$file\n";
|
||||
print "(This is only required for LVM volumes, which you've selected)\n";
|
||||
exit;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1292,7 +1292,7 @@ sub installSystem
|
||||
{
|
||||
$cmd .= " --debootstrap";
|
||||
$cmd .= " --mirror=$CONFIG{'mirror'}";
|
||||
print "debootstrap from $CONFIG{'mirror'}\n";
|
||||
print "debootstrap mirror $CONFIG{'mirror'}\n";
|
||||
}
|
||||
if ( $CONFIG{'rpmstrap'} )
|
||||
{
|
||||
@@ -1403,8 +1403,8 @@ sub runCustomisationHooks
|
||||
|
||||
sub runRoleScript
|
||||
{
|
||||
my $roleDir = '/usr/lib/xen-tools/' . $CONFIG{'dist'} . '.d/role.d/' ;
|
||||
my $role = $CONFIG{'role'};
|
||||
my $roleDir = '/usr/lib/xen-tools/' . $CONFIG{'dist'} . '.d/role.d/' ;
|
||||
my $role = $CONFIG{'role'};
|
||||
|
||||
if ( !defined( $role ) )
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user