fix defect 4295, sysclone can't clone a SLES11.3 golden client

This commit is contained in:
huweihua 2014-10-26 22:38:25 -04:00
parent f00771ff92
commit 8431d6cad9

View File

@ -19,7 +19,7 @@ do
# str_dev_prefix=`basename $str_old_dev | awk -F'-' '{print $1}'`
#find out the new by-id name
str_new_dev=`ls -l --time-style=locale /dev/disk/by-id/ | grep -E "$str_real\$" | awk '{print $9}'`
str_new_dev=`ls -l --time-style=locale /dev/disk/by-id/ | grep -E "$str_real\$" | awk '{print $9}'|head -n 1`
if [ -z "$str_new_dev" ];then
continue
fi