From c270739cdcbb16155ada40fe69e99ed3c956592e Mon Sep 17 00:00:00 2001 From: GONG Jie Date: Sun, 31 Dec 2017 23:59:59 +0000 Subject: [PATCH] Remove trailing spaces in file xCAT/postscripts/replace_byid_device --- xCAT/postscripts/replace_byid_device | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/xCAT/postscripts/replace_byid_device b/xCAT/postscripts/replace_byid_device index 47429e9ff..269e27b21 100644 --- a/xCAT/postscripts/replace_byid_device +++ b/xCAT/postscripts/replace_byid_device @@ -2,7 +2,7 @@ #Only used by sysclone -#if the /etc/systemimager/byid_real_map.conf exist, +#if the /etc/systemimager/byid_real_map.conf exist, #the device name used in fstab and grub are in "by-id" style #use the by-id name on target node to replace the name on the goden client @@ -17,7 +17,7 @@ do str_real="${str_line##*:}" str_real="${str_line##*/}" # 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}'|head -n 1` if [ -z "$str_new_dev" ];then