fix defect 4295, sysclone can't clone a SLES11.3 golden client
This commit is contained in:
parent
f00771ff92
commit
8431d6cad9
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user