1
0
mirror of synced 2026-01-20 17:38:02 +00:00

2005-12-26 15:27:59 by steve

Give a better error message when a filesystem creation binary is not installed.
This commit is contained in:
steve 2005-12-26 15:27:59 +00:00
parent 837743f316
commit a9c7b9ee4f

View File

@ -303,7 +303,7 @@ Show the version number and exit.
--
http://www.steve.org.uk/
$Id: xen-create-image,v 1.73 2005-12-26 15:26:30 steve Exp $
$Id: xen-create-image,v 1.74 2005-12-26 15:27:59 steve Exp $
=cut
@ -863,7 +863,7 @@ sub parseCommandLineArguments
if ( $VERSION )
{
my $REVISION = '$Id: xen-create-image,v 1.73 2005-12-26 15:26:30 steve Exp $';
my $REVISION = '$Id: xen-create-image,v 1.74 2005-12-26 15:27:59 steve Exp $';
$VERSION = join (' ', (split (' ', $REVISION))[2]);
$VERSION =~ s/,v\b//;
$VERSION =~ s/(\S+)$/$1/;
@ -959,7 +959,7 @@ EOF
#
my $binpath = $FILESYSTEM_BINARY{lc( $CONFIG{'fs'} ) };
if ( ! -x $binpath ) {
print "Unable to find required executable ". $binpath. ".\n";
print "$binpath : required to create a $CONFIG{'fs'} filesystem is missing.\nAborting\n";
exit;
}