From 1586ca799197f8cd41a469698bde8aeaf3e23a85 Mon Sep 17 00:00:00 2001 From: immarvin Date: Mon, 31 Jul 2017 04:59:41 -0400 Subject: [PATCH] fix issue The line 71 of postbootscript setbootfromnet is wrong in rhels7.4GA #3562 --- xCAT/postscripts/setbootfromnet | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/xCAT/postscripts/setbootfromnet b/xCAT/postscripts/setbootfromnet index df5a898e4..a979a03f3 100755 --- a/xCAT/postscripts/setbootfromnet +++ b/xCAT/postscripts/setbootfromnet @@ -47,7 +47,7 @@ if [ ! -z $NODE_NAME ]; then if [[ $OS = "Linux" ]]; then CLIENT_IP=`ping -c 3 $NODE_NAME | sed '/icmp_seq/!d;s/.*(\([0-9.]\+\)).*/\1/' | uniq 2>&1` RET=`echo $?` - NIC=`ip route | grep "src $CLIENT_IP" | sed -r 's/.*dev (.*) proto.*/\1/' 2>&1` + NIC=`ip route | grep "src $CLIENT_IP" | sed -r 's/.*dev (.*) +proto.*/\1/' 2>&1` NRET=`echo $?` else ## for AIX CLIENT_IP=`ping -c 3 $NODE_NAME | grep "icmp_seq" | sed 's/.*from \([0-9.]*\):.*/\1/' | uniq 2>&1`