Use hvc0 and xvda devices by default, add --scsi option for sda names
This commit is contained in:
@@ -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' },
|
||||
|
||||
@@ -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
1
debian/changelog
vendored
@@ -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)
|
||||
|
||||
@@ -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`
|
||||
|
||||
@@ -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`
|
||||
|
||||
@@ -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`
|
||||
|
||||
@@ -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`
|
||||
|
||||
@@ -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`
|
||||
|
||||
@@ -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`
|
||||
|
||||
@@ -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`
|
||||
|
||||
@@ -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`
|
||||
|
||||
@@ -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`
|
||||
|
||||
Reference in New Issue
Block a user