summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMartin Schwenke <martin@meltin.net>2012-05-01 10:32:32 +1000
committerMartin Schwenke <martin@meltin.net>2012-05-01 10:32:32 +1000
commit750324e5c07aec91df934458d0df527f540767df (patch)
tree3efea6f37ae2a309daccb75d3ee97e56875a717f
parentf3e9a33ec3f1785d43316046eb49bb00a15c0166 (diff)
downloadautocluster-750324e5c07aec91df934458d0df527f540767df.tar.gz
autocluster-750324e5c07aec91df934458d0df527f540767df.tar.xz
autocluster-750324e5c07aec91df934458d0df527f540767df.zip
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 <martin@meltin.net>
-rw-r--r--config.d/00base.defconf6
1 files 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
}