2
0
mirror of https://github.com/xcat2/xcat-core.git synced 2025-06-18 20:30:56 +00:00

Using statefule image only now.

This commit is contained in:
Bin Xu
2017-05-26 17:51:28 +08:00
parent 213e7e05de
commit ecd05c6de4

View File

@ -198,7 +198,7 @@ getOSimage()
if [ -z $PERF_OSIMAGE ]; then
# covert it to an array
osimage_array=($(lsdef -t osimage 2>/dev/null| grep `arch`|awk '/compute/ {print $1}'))
osimage_array=($(lsdef -t osimage 2>/dev/null| grep `arch`|grep 'install'|awk '/compute/ {print $1}'))
index=`expr $RANDOM % ${#osimage_array[@]} 2>/dev/null`
echo ${osimage_array[$index]}
else