From 750324e5c07aec91df934458d0df527f540767df Mon Sep 17 00:00:00 2001 From: Martin Schwenke Date: Tue, 1 May 2012 10:32:32 +1000 Subject: Fix 2 bugs in rhel_disk_prefix() * Needs to work for "iscsi", since this is used for shared disks too. * Error message referred to SYSTEM_DISK_TYPE rather than generic disk type passed in $1. Signed-off-by: Martin Schwenke --- config.d/00base.defconf | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/config.d/00base.defconf b/config.d/00base.defconf index aed39c5..5cb7d1c 100644 --- a/config.d/00base.defconf +++ b/config.d/00base.defconf @@ -76,8 +76,8 @@ defconf SYSTEM_DISK_TYPE "ide" \ rhel_disk_prefix () { case "$1" in - (scsi) echo "sd" ;; - (virtio) echo "vd" ;; + (scsi|iscsi) echo "sd" ;; + (virtio) echo "vd" ;; ide) case "$RHEL_VERSION" in (5.*) echo "hd" ;; @@ -85,7 +85,7 @@ rhel_disk_prefix () (*) die "Unknown RHEL_VERSION in rhel_disk_prefix" ;; esac ;; - (*) die "Unknown SYSTEM_DISK_TYPE in rhel_disk_prefix" ;; + (*) die "Unknown disk type \"$1\" in rhel_disk_prefix" ;; esac } -- cgit