From 72cb00d6a47d035e13fc4e330b392cf90b3f0b72 Mon Sep 17 00:00:00 2001 From: immarvin Date: Mon, 23 Nov 2015 09:03:21 -0500 Subject: [PATCH] disk names might be sdaa,sdab.... --- xCAT-server/share/xcat/install/scripts/pre.pkvm3 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/xCAT-server/share/xcat/install/scripts/pre.pkvm3 b/xCAT-server/share/xcat/install/scripts/pre.pkvm3 index 3d0775f9e..7ddca1fa2 100755 --- a/xCAT-server/share/xcat/install/scripts/pre.pkvm3 +++ b/xCAT-server/share/xcat/install/scripts/pre.pkvm3 @@ -5,7 +5,7 @@ shopt -s nullglob #first take the disk with the MAX WWN numer to be the installdisk if [ -z "$instdisk" ]; then - disks=$(awk -F' ' '{print $4 }' /proc/partitions |grep -e "sd[a-z]\{1,\}$") + disks=$(awk -F' ' '{print $4 }' /proc/partitions |grep -e "sd[a-z]\+$") for disk in $disks; do diskinfo=$(udevadm info --name $disk) diskname=$(IFS= ;echo $diskinfo|grep '\'|cut -d "=" -f2|tr A-Z a-z)