1
0
mirror of synced 2026-04-25 20:11:20 +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

@@ -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`