Skip to content

Commit

Permalink
Merge pull request #6195 from xcat2/master
Browse files Browse the repository at this point in the history
Merge master to 2.14 branch for 2.14.6 release
  • Loading branch information
Weihua Hu committed Mar 29, 2019
2 parents a09e5ba + 80f28f5 commit 7c787c4
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 7 deletions.
2 changes: 1 addition & 1 deletion xCAT-test/autotest/testcase/kdump/linux_diskless_kdump
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ cmd:exlistfile=`lsdef -t osimage __GETNODEATTR($$CN,os)__-__GETNODEATTR($$CN,arc
check:rc==0

cmd:postinstallfile=`lsdef -t osimage __GETNODEATTR($$CN,os)__-__GETNODEATTR($$CN,arch)__-netboot-compute|grep postinstall|awk -F'=' '{print $2}'`;cp $postinstallfile $postinstallfile.bak
cmd:postinstallfile=`lsdef -t osimage __GETNODEATTR($$CN,os)__-__GETNODEATTR($$CN,arch)__-netboot-compute|grep postinstall|awk -F'=' '{print $2}'`; if grep SUSE /etc/*release;then sed -i "/\/tmp/ s/10/200/g" $postinstallfile; elif grep "Red Hat" /etc/*release;then sed -i /devpts/a"tmpfs /var/tmp tmpfs defaults,size=200m 0 2" $postinstallfile;fi
cmd:postinstallfile=`lsdef -t osimage __GETNODEATTR($$CN,os)__-__GETNODEATTR($$CN,arch)__-netboot-compute|grep postinstall|awk -F'=' '{print $2}'`; if grep SUSE /etc/*release;then sed -i "/\/tmp/ s/10/500/g" $postinstallfile; elif grep "Red Hat" /etc/*release;then sed -i /devpts/a"tmpfs /var/tmp tmpfs defaults,size=500m 0 2" $postinstallfile;fi
check:rc==0

cmd:if [ ! -d /kdumpdir ]; then mkdir -p /kdumpdir && chmod 777 /kdumpdir; fi
Expand Down
18 changes: 12 additions & 6 deletions xCAT/postscripts/configeth
Original file line number Diff line number Diff line change
Expand Up @@ -686,6 +686,7 @@ elif [ "$1" = "-s" ];then
fi

if [ "$UPDATENODE" = "1" ] || [ "$NODESETSTATE" = "netboot" ] || [ "$NODESETSTATE" = "statelite" ] || grep "REBOOT=TRUE" /opt/xcat/xcatinfo >/dev/null 2>&1; then
if_state=0
if [ "$str_os_type" = "debian" ];then
ifdown --force $str_inst_nic
else
Expand All @@ -696,11 +697,13 @@ elif [ "$1" = "-s" ];then
else
ifup $str_inst_nic
fi
wait_for_ifstate $str_inst_nic UP 20 5
fi
if [ $? -ne 0 ]; then
log_error "bring $str_inst_nic up failed."
error_code=1
if [ $? -ne 0 ]; then
if_state=$(wait_for_ifstate $str_inst_nic UP 20 5)
fi
if [ $if_state -ne 0 ]; then
log_error "bring $str_inst_nic up failed."
error_code=1
fi
fi
if [ $networkmanager_active -eq 1 ] && [ -n "$tmp_con_name" ]; then
if [ $error_code -eq 1 ]; then
Expand Down Expand Up @@ -1106,14 +1109,17 @@ else
fi
else
if [ $reboot_nic_bool -eq 1 ]; then
if_state=0
echo "bring up ip"
if [ $networkmanager_active -eq 1 ]; then
nmcli con up $con_name
else
ifup $str_nic_name
fi
wait_for_ifstate $str_nic_name UP 20 5
if [ $? -ne 0 ]; then
if_state=$(wait_for_ifstate $str_nic_name UP 20 5)
fi
if [ $if_state -ne 0 ]; then
log_error "bring $str_nic_name up failed."
error_code=1
fi
Expand Down

0 comments on commit 7c787c4

Please sign in to comment.