From 96b185adb1ac44b87682fd7c70ca70a232513b26 Mon Sep 17 00:00:00 2001 From: root Date: Fri, 22 Feb 2019 04:24:34 -0500 Subject: [PATCH] fix diskless issue --- xCAT/postscripts/configeth | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/xCAT/postscripts/configeth b/xCAT/postscripts/configeth index 9133ea09a3..a71b7b293d 100755 --- a/xCAT/postscripts/configeth +++ b/xCAT/postscripts/configeth @@ -628,7 +628,7 @@ elif [ "$1" = "-s" ];then if [ "$con_name" == "--" ] ; then nmcli con add type ethernet con-name ${str_inst_nic} ifname ${str_inst_nic} ipv4.method manual ipv4.addresses ${str_inst_ip}/${str_inst_prefix} else - nmcli con mod "System ens3" ipv4.method manual ipv4.addresses ${str_inst_ip}/${str_inst_prefix} + nmcli con mod "System ${str_inst_nic}" ipv4.method manual ipv4.addresses ${str_inst_ip}/${str_inst_prefix} fi else echo "DEVICE=${str_inst_nic}" > $str_conf_file @@ -674,7 +674,7 @@ elif [ "$1" = "-s" ];then fi fi - if [ "$UPDATENODE" = "1" ] || grep "REBOOT=TRUE" /opt/xcat/xcatinfo >/dev/null 2>&1; then + if [ "$UPDATENODE" = "1" ] || [ "$NODESETSTATE" = "netboot" ] || [ "$NODESETSTATE" = "statelite" ] || grep "REBOOT=TRUE" /opt/xcat/xcatinfo >/dev/null 2>&1; then if [ "$str_os_type" = "debian" ];then ifdown --force $str_inst_nic else