2006-07-23 00:56:29 by steve
Make sure we have an installation method specified: #379347
This commit is contained in:
@@ -439,7 +439,7 @@ Install an X11 server, using VNC and XDM
|
||||
--
|
||||
http://www.steve.org.uk/
|
||||
|
||||
$Id: xen-create-image,v 1.56 2006-07-23 00:51:48 steve Exp $
|
||||
$Id: xen-create-image,v 1.57 2006-07-23 00:56:29 steve Exp $
|
||||
|
||||
=cut
|
||||
|
||||
@@ -865,7 +865,7 @@ sub parseCommandLineArguments
|
||||
|
||||
if ( $VERSION )
|
||||
{
|
||||
my $REVISION = '$Revision: 1.56 $';
|
||||
my $REVISION = '$Revision: 1.57 $';
|
||||
|
||||
if ( $REVISION =~ /1.([0-9.]+) / )
|
||||
{
|
||||
@@ -1010,6 +1010,35 @@ E_OR
|
||||
exit;
|
||||
}
|
||||
|
||||
#
|
||||
# Make sure we have one, and only one, installation method.
|
||||
#
|
||||
my $count = 0;
|
||||
foreach my $key ( qw/debootstrap rpmstrap copy tar/ )
|
||||
{
|
||||
if ( defined $CONFIG{$key} )
|
||||
{
|
||||
$count += 1;
|
||||
}
|
||||
}
|
||||
if ( $count != 1 )
|
||||
{
|
||||
print <<E_O_ERROR;
|
||||
|
||||
Please specify an installation method using one of the following
|
||||
command line options:
|
||||
|
||||
--debootstrap = Install the system using the deboostrap command.
|
||||
--rpmstrap = Install the system using the rpmstrap command.
|
||||
--copy /path = Install by copying the specified directory recursively.
|
||||
--untar file.tar = Install by untarring the given file.
|
||||
|
||||
(You could specify one of these options as the default in the configuration
|
||||
file /etc/xen-tools/xen-tools.conf.)
|
||||
|
||||
E_O_ERROR
|
||||
exit;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user