From dc9017ddd59cb947337fda7f637e405eaebd37d0 Mon Sep 17 00:00:00 2001 From: immarvin Date: Mon, 23 Nov 2015 08:57:32 -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 cce542a81..3d0775f9e 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]+$") + disks=$(awk -F' ' '{print $4 }' /proc/partitions |grep -e "sd[a-z]\{1,\}$") for disk in $disks; do diskinfo=$(udevadm info --name $disk) diskname=$(IFS= ;echo $diskinfo|grep '\'|cut -d "=" -f2|tr A-Z a-z)