From 8431d6cad980b2d071ce3752e1599c1b500f27cc Mon Sep 17 00:00:00 2001 From: huweihua Date: Sun, 26 Oct 2014 22:38:25 -0400 Subject: [PATCH] fix defect 4295, sysclone can't clone a SLES11.3 golden client --- xCAT/postscripts/replace_byid_device | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/xCAT/postscripts/replace_byid_device b/xCAT/postscripts/replace_byid_device index 8d199c2a6..47429e9ff 100644 --- a/xCAT/postscripts/replace_byid_device +++ b/xCAT/postscripts/replace_byid_device @@ -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