1
0
mirror of synced 2026-04-25 03:54:31 +00:00

Use hvc0 and xvda devices by default, add --scsi option for sda names

This commit is contained in:
Axel Beckert
2010-05-15 16:04:17 +02:00
parent 28803001d3
commit 49d01d9a76
12 changed files with 73 additions and 29 deletions

View File

@@ -120,7 +120,9 @@ xen-create-image - Easily create new Xen instances with networking and OpenSSH.
its /etc/fstab file either.
--ide Use IDE names for virtual devices (i.e. hda not sda)
--ide Use IDE names for virtual devices (i.e. hda not xvda)
--scsi Use SCSI names for virtual devices (i.e. sda not xvda)
Installation options:
@@ -1436,6 +1438,7 @@ sub parseCommandLineArguments
"cache=s", \$CONFIG{ 'cache' },
"config=s", \$CONFIG{ 'config' },
"ide", \$CONFIG{ 'ide' },
"scsi", \$CONFIG{ 'scsi' },
"install=i", \$CONFIG{ 'install' },
"hooks=i", \$CONFIG{ 'hooks' },
"pygrub", \$CONFIG{ 'pygrub' },

View File

@@ -350,11 +350,15 @@ sub createXenConfig
#
# The device we're using.
#
my $device = 'sda';
my $device = 'xvda';
if ( defined( $ENV{ 'ide' } ) )
{
$device = 'hda';
}
elsif ( defined( $ENV{ 'scsi' } ) )
{
$device = 'sda';
}
elsif ( defined( $ENV{ 'disk_device' } ) )
{
$device = $ENV{ 'disk_device' };