mirror of
https://github.com/xcat2/xcat-core.git
synced 2025-05-21 19:22:05 +00:00
correct several issues on site.httpport in diskless provision (#5774)
This commit is contained in:
parent
13bca11a9d
commit
01541aba74
@ -652,8 +652,7 @@ sub mknetboot
|
||||
$kcmdline .= $statemnt . " ";
|
||||
|
||||
$kcmdline .= "XCAT=$xcatmasterip:$xcatdport ";
|
||||
|
||||
$kcmdline .= "XCATHTTPPORT=$httpport ";
|
||||
|
||||
|
||||
if ($rootfstype ne "ramdisk") {
|
||||
|
||||
@ -695,6 +694,8 @@ sub mknetboot
|
||||
$kcmdline .= " nonodestatus ";
|
||||
}
|
||||
|
||||
$kcmdline .= "XCATHTTPPORT=$httpport ";
|
||||
|
||||
if (($::XCATSITEVALS{xcatdebugmode} eq "1") or ($::XCATSITEVALS{xcatdebugmode} eq "2")) {
|
||||
#for use in postscript and postbootscript in xcatdsklspost in the rootimg
|
||||
$kcmdline .= " LOGSERVER=$xcatmasterip ";
|
||||
|
@ -1336,8 +1336,6 @@ sub mknetboot
|
||||
}
|
||||
|
||||
|
||||
$kcmdline .=" XCATHTTPPORT=$httpport ";
|
||||
|
||||
# add support for subVars in the value of "statemnt"
|
||||
my $statemnt = "";
|
||||
if (exists($stateHash->{$node})) {
|
||||
@ -1401,6 +1399,7 @@ sub mknetboot
|
||||
}
|
||||
|
||||
|
||||
$kcmdline .=" XCATHTTPPORT=$httpport ";
|
||||
if (($::XCATSITEVALS{xcatdebugmode} eq "1") or ($::XCATSITEVALS{xcatdebugmode} eq "2")) {
|
||||
|
||||
my ($host, $ipaddr) = xCAT::NetworkUtils->gethostnameandip($xcatmaster);
|
||||
|
@ -487,7 +487,7 @@ else # for common mode MODE=1,2,3,5 (updatenode,moncfg,node deployment)
|
||||
SIP=`echo $TMP | cut -d: -f1`
|
||||
|
||||
elif [ "$KEY" = "XCATHTTPPORT" ];then
|
||||
HTTPPORT=$(echo $i | awk -F= '{print $1}')
|
||||
HTTPPORT=$(echo $i | awk -F= '{print $2}')
|
||||
[ -z "$HTTPPORT" ] && HTTPPORT="80"
|
||||
fi
|
||||
done
|
||||
|
Loading…
x
Reference in New Issue
Block a user