mirror of
https://github.com/xcat2/xcat-core.git
synced 2025-05-22 11:42:05 +00:00
fix defect #4743 [fvt]2.10:after diskless provision could not log in compute node without passord
This commit is contained in:
parent
fcf732c960
commit
dcbc16a5ab
@ -1401,6 +1401,21 @@ sub mknetboot
|
||||
if(($nodestatus eq "n") or ($nodestatus eq "N") or ($nodestatus eq "0")){
|
||||
$kcmdline .= " nonodestatus ";
|
||||
}
|
||||
|
||||
|
||||
if($::XCATSITEVALS{xcatdebugmode} eq "1"){
|
||||
|
||||
my ($host, $ipaddr) = xCAT::NetworkUtils->gethostnameandip($xcatmaster);
|
||||
if($ipaddr){
|
||||
$kcmdline .=" LOGSERVER=$ipaddr ";
|
||||
}else{
|
||||
$kcmdline .=" LOGSERVER=$xcatmaster ";
|
||||
}
|
||||
|
||||
$kcmdline .= " xcatdebugmode=1 ";
|
||||
}
|
||||
|
||||
|
||||
# add one parameter: ifname=<eth0>:<mac address>
|
||||
# which is used for dracut
|
||||
# the redhat5.x os will ignore it
|
||||
|
@ -576,6 +576,20 @@ sub mknetboot
|
||||
$kcmdline .= " nonodestatus ";
|
||||
}
|
||||
|
||||
|
||||
if($::XCATSITEVALS{xcatdebugmode} eq "1"){
|
||||
|
||||
my ($host, $ipaddr) = xCAT::NetworkUtils->gethostnameandip($xcatmaster);
|
||||
if($ipaddr){
|
||||
$kcmdline .=" LOGSERVER=$ipaddr ";
|
||||
}else{
|
||||
$kcmdline .=" LOGSERVER=$xcatmaster ";
|
||||
}
|
||||
|
||||
$kcmdline .= " xcatdebugmode=1 ";
|
||||
}
|
||||
|
||||
|
||||
$kcmdline .= "NODE=$node ";
|
||||
# add flow control setting
|
||||
$kcmdline .= "FC=$useflowcontrol ";
|
||||
|
@ -8,7 +8,7 @@ declare -F msgutil_r &>/dev/null || function msgutil_r {
|
||||
msgtype="debug"
|
||||
fi
|
||||
|
||||
if [ -n "logserver" ];then
|
||||
if [ -n "$logserver" ];then
|
||||
logger -n $logserver -t xcat -p local4.$msgtype "$msgstr"
|
||||
if [ "$?" != "0" ];then
|
||||
exec 3<>/dev/udp/$logserver/514 >/dev/null 2>&1;logger -s -t xcat -p local4.$msgtype "$msgstr" 1>&3 2>&1
|
||||
|
@ -715,7 +715,7 @@ function msgutil_r {
|
||||
fi
|
||||
|
||||
|
||||
if [ -n "logserver" ];then
|
||||
if [ -n "$logserver" ];then
|
||||
logger -n $logserver -t xcat -p local4.$msgtype "$msgstr" >/dev/null 2>&1
|
||||
if [ "$?" != "0" ];then
|
||||
exec 3<>/dev/udp/$logserver/514 >/dev/null 2>&1;logger -s -t xcat -p local4.$msgtype "$msgstr" 1>&3 2>&1
|
||||
|
Loading…
x
Reference in New Issue
Block a user