2
0
mirror of https://github.com/xcat2/xcat-core.git synced 2025-08-22 11:10:24 +00:00

Remove trailing spaces in file xCAT/postscripts/replace_byid_device

This commit is contained in:
GONG Jie
2017-12-31 23:59:59 +00:00
parent eb09928e2c
commit c270739cdc

View File

@@ -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