2006-06-22 15:17:21 by steve
Don't allow sparse images on LVM - #374988
This commit is contained in:
@@ -432,7 +432,7 @@ Install an X11 server, using VNC and XDM
|
||||
--
|
||||
http://www.steve.org.uk/
|
||||
|
||||
$Id: xen-create-image,v 1.40 2006-06-22 14:54:12 steve Exp $
|
||||
$Id: xen-create-image,v 1.41 2006-06-22 15:17:21 steve Exp $
|
||||
|
||||
=cut
|
||||
|
||||
@@ -846,7 +846,7 @@ sub parseCommandLineArguments
|
||||
|
||||
if ( $VERSION )
|
||||
{
|
||||
my $REVISION = '$Revision: 1.40 $';
|
||||
my $REVISION = '$Revision: 1.41 $';
|
||||
|
||||
if ( $REVISION =~ /1.([0-9.]+) / )
|
||||
{
|
||||
@@ -950,6 +950,16 @@ E_OR
|
||||
}
|
||||
}
|
||||
|
||||
#
|
||||
# If using LVM images cannot be sparse
|
||||
#
|
||||
if ( $CONFIG{'lvm'} )
|
||||
{
|
||||
$CONFIG{'image'} = "full";
|
||||
print "Switching to 'full' images rather than 'sparse', since you're using LVM\n";
|
||||
}
|
||||
|
||||
|
||||
#
|
||||
# The kernel + initrd images should exist.
|
||||
#
|
||||
|
||||
Reference in New Issue
Block a user