mirror of
https://github.com/xcat2/xcat-core.git
synced 2025-08-22 19:20:24 +00:00
Remove trailing spaces in file xCAT/postscripts/replace_byid_device
This commit is contained in:
@@ -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
|
||||
|
Reference in New Issue
Block a user