1
0
mirror of synced 2026-04-13 23:23:41 +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' };

1
debian/changelog vendored
View File

@@ -7,6 +7,7 @@ xen-tools (4.2~rc1-1) UNRELEASED; urgency=low
- Supports for more recent versions of Fedora, Ubuntu and Debian
(Closes: #499477)
- Supports pygrub. (Added "Suggests: xen-utils" to debian/control)
- Uses hvc0 and xvda devices by default
- Sets umask to 0077 before creating disk images (Closes: #548909)
- Makes sure, MAKEDEV is found in either /dev/ or /sbin/
(Closes: #502798, #515228)

View File

@@ -36,15 +36,19 @@ logMessage Filesystem options are ${options}
#
# Find the root device.
#
# 1. default to sda.
# 1. default to xvda.
#
# 2. If --ide is specified use hda.
#
# 3. Otherwise use a named $disk_device
# 3. If --scsi is specified use sda.
#
device=sda
# 4. Otherwise use a named $disk_device
#
device=xvda
if [ "${ide}" ]; then
device=hda
elif [ "${scsi}" ]; then
device=sda
else
if [ ! -z "${disk_device}" ]; then
device=`basename $disk_device`

View File

@@ -37,15 +37,19 @@ logMessage Filesystem options are ${options}
#
# Find the root device.
#
# 1. default to sda.
# 1. default to xvda.
#
# 2. If --ide is specified use hda.
#
# 3. Otherwise use a named $disk_device
# 3. If --scsi is specified use sda.
#
device=sda
# 4. Otherwise use a named $disk_device
#
device=xvda
if [ "${ide}" ]; then
device=hda
elif [ "${scsi}" ]; then
device=sda
else
if [ ! -z "${disk_device}" ]; then
device=`basename $disk_device`

View File

@@ -33,15 +33,19 @@ logMessage Script $0 starting
#
# Find the root device.
#
# 1. default to sda.
# 1. default to xvda.
#
# 2. If --ide is specified use hda.
#
# 3. Otherwise use a named $disk_device
# 3. If --scsi is specified use sda.
#
device=sda
# 4. Otherwise use a named $disk_device
#
device=xvda
if [ "${ide}" ]; then
device=hda
elif [ "${scsi}" ]; then
device=sda
else
if [ ! -z "${disk_device}" ]; then
device=`basename $disk_device`

View File

@@ -32,15 +32,19 @@ logMessage Script $0 starting
#
# Find the root device.
#
# 1. default to sda.
# 1. default to xvda.
#
# 2. If --ide is specified use hda.
#
# 3. Otherwise use a named $disk_device
# 3. If --scsi is specified use sda.
#
device=sda
# 4. Otherwise use a named $disk_device
#
device=xvda
if [ "${ide}" ]; then
device=hda
elif [ "${scsi}" ]; then
device=sda
else
if [ ! -z "${disk_device}" ]; then
device=`basename $disk_device`

View File

@@ -33,15 +33,19 @@ logMessage Script $0 starting
#
# Find the root device.
#
# 1. default to sda.
# 1. default to xvda.
#
# 2. If --ide is specified use hda.
#
# 3. Otherwise use a named $disk_device
# 3. If --scsi is specified use sda.
#
device=sda
# 4. Otherwise use a named $disk_device
#
device=xvda
if [ "${ide}" ]; then
device=hda
elif [ "${scsi}" ]; then
device=sda
else
if [ ! -z "${disk_device}" ]; then
device=`basename $disk_device`

View File

@@ -36,15 +36,19 @@ logMessage Filesystem options are ${options}
#
# Find the root device.
#
# 1. default to sda.
# 1. default to xvda.
#
# 2. If --ide is specified use hda.
#
# 3. Otherwise use a named $disk_device
# 3. If --scsi is specified use sda.
#
device=sda
# 4. Otherwise use a named $disk_device
#
device=xvda
if [ "${ide}" ]; then
device=hda
elif [ "${scsi}" ]; then
device=sda
else
if [ ! -z "${disk_device}" ]; then
device=`basename $disk_device`

View File

@@ -33,15 +33,19 @@ logMessage Script $0 starting
#
# Find the root device.
#
# 1. default to sda.
# 1. default to xvda.
#
# 2. If --ide is specified use hda.
#
# 3. Otherwise use a named $disk_device
# 3. If --scsi is specified use sda.
#
device=sda
# 4. Otherwise use a named $disk_device
#
device=xvda
if [ "${ide}" ]; then
device=hda
elif [ "${scsi}" ]; then
device=sda
else
if [ ! -z "${disk_device}" ]; then
device=`basename $disk_device`

View File

@@ -33,15 +33,19 @@ logMessage Script $0 starting
#
# Find the root device.
#
# 1. default to sda.
# 1. default to xvda.
#
# 2. If --ide is specified use hda.
#
# 3. Otherwise use a named $disk_device
# 3. If --scsi is specified use sda.
#
device=sda
# 4. Otherwise use a named $disk_device
#
device=xvda
if [ "${ide}" ]; then
device=hda
elif [ "${scsi}" ]; then
device=sda
else
if [ ! -z "${disk_device}" ]; then
device=`basename $disk_device`

View File

@@ -33,15 +33,19 @@ logMessage Script $0 starting
#
# Find the root device.
#
# 1. default to sda.
# 1. default to xvda.
#
# 2. If --ide is specified use hda.
#
# 3. Otherwise use a named $disk_device
# 3. If --scsi is specified use sda.
#
device=sda
# 4. Otherwise use a named $disk_device
#
device=xvda
if [ "${ide}" ]; then
device=hda
elif [ "${scsi}" ]; then
device=sda
else
if [ ! -z "${disk_device}" ]; then
device=`basename $disk_device`