2
0
mirror of https://github.com/xcat2/xcat-core.git synced 2025-05-21 19:22:05 +00:00

add HTTPPORT=xxx in kcmdline for diskless/statelite

This commit is contained in:
yangsbj 2018-11-02 05:00:26 -04:00
parent 2e4bbcff1d
commit 1fb78eb97d
3 changed files with 5 additions and 2 deletions

View File

@ -652,7 +652,8 @@ sub mknetboot
$kcmdline .= $statemnt . " ";
$kcmdline .= "XCAT=$xcatmasterip:$xcatdport ";
$kcmdline .= "HTTPPORT=$httpport ";
if ($rootfstype ne "ramdisk") {

View File

@ -1336,7 +1336,7 @@ sub mknetboot
}
$kcmdline .=" HTTPPORT=$httpport ";
# add support for subVars in the value of "statemnt"
my $statemnt = "";
@ -1394,6 +1394,7 @@ sub mknetboot
$kcmdline .= "XCAT=$xcatmaster:$xcatdport ";
}
# if site.nodestatus='n', add "nonodestatus" to kcmdline to inform the node not to update nodestatus during provision
if (($nodestatus eq "n") or ($nodestatus eq "N") or ($nodestatus eq "0")) {
$kcmdline .= " nonodestatus ";

View File

@ -515,6 +515,7 @@ sub mknetboot
"imgurl=$httpmethod://$imgsrv:$httpport/$rootimgdir/$compressedrootimg ";
}
$kcmdline .= "XCAT=$xcatmaster:$xcatdport quiet ";
$kcmdline .= " HTTPPORT=$httpport ";
#if site.nodestatus="n", append "nonodestatus" to kcmdline
#to inform the statelite/stateless node not to update the nodestatus during provision