From 340516c2c34984e9e82c4238ef919b67d86c7c03 Mon Sep 17 00:00:00 2001 From: immarvin Date: Mon, 23 Nov 2015 08:50:34 -0500 Subject: [PATCH] disk names might be sd[a-z]+ --- 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 c365451b4..cce542a81 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]+$") for disk in $disks; do diskinfo=$(udevadm info --name $disk) diskname=$(IFS= ;echo $diskinfo|grep '\'|cut -d "=" -f2|tr A-Z a-z)