Skip to content

Commit

Permalink
fix issue Function httpport can not work on ubuntu + netboot=grub2 sc…
Browse files Browse the repository at this point in the history
…enario xcat2#5869
  • Loading branch information
immarvin committed Dec 4, 2018
1 parent 8a3db2b commit 5777df8
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
1 change: 1 addition & 0 deletions xCAT-server/lib/perl/xCAT/Template.pm
Original file line number Diff line number Diff line change
Expand Up @@ -391,6 +391,7 @@ sub subvars {
$inc =~ s/#SHORTNAME#/$shortname/g;
$inc =~ s/#GETNODEDOMAIN:([^#]+)#/get_node_domain($1)/eg;
$inc =~ s/#GETPRINICMAC:([^#]+)#/xCAT::Utils::parseMacTabEntry(tabdb("mac",$1,"mac"),$1)/eg;
$inc =~ s/#COLONHTTPPORT#/$httpportsuffix/eg;

if (($::XCATSITEVALS{xcatdebugmode} eq "1") or ($::XCATSITEVALS{xcatdebugmode} eq "2")) {
$inc =~ s/#UNCOMMENTOENABLEDEBUGPORT#/ /g;
Expand Down
2 changes: 1 addition & 1 deletion xCAT-server/lib/xcat/plugins/debian.pm
Original file line number Diff line number Diff line change
Expand Up @@ -872,7 +872,7 @@ sub mkinstall {
my $kcmdline = "nofb utf8 auto url=http://" . $instserver . ":$httpport/install/autoinst/" . $node;

$kcmdline .= " xcatd=" . $instserver;
$kcmdline .= " mirror/http/hostname=" . $instserver;
$kcmdline .= " mirror/http/hostname=" . $instserver.":$httpport";
if ($maxmem) {
$kcmdline .= " mem=$maxmem";
}
Expand Down
4 changes: 2 additions & 2 deletions xCAT-server/share/xcat/install/ubuntu/compute.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ xserver-xorg xserver-xorg/config/monitor/mode-list \
d-i preseed/early_command string \
{ \
echo "Running preseeding early_command Installation script..."; \
wget http://`cat /tmp/xcatserver`/install/autoinst/#HOSTNAME#.pre; \
wget http://`cat /tmp/xcatserver`#COLONHTTPPORT#/install/autoinst/#HOSTNAME#.pre; \
chmod u+x #HOSTNAME#.pre; \
./#HOSTNAME#.pre; \
umount /media || true; \
Expand All @@ -135,7 +135,7 @@ d-i preseed/late_command string \
{ \
cat /tmp/pre-install.log >> /target/var/log/xcat/xcat.log; \
echo "Running preseeding late_command Installation script..."; \
wget http://`cat /tmp/xcatserver`/install/autoinst/#HOSTNAME#.post; \
wget http://`cat /tmp/xcatserver`#COLONHTTPPORT#/install/autoinst/#HOSTNAME#.post; \
chmod u+x #HOSTNAME#.post; \
cp ./#HOSTNAME#.post /target/root/post.script; \
mount -o bind /proc /target/proc -t proc; \
Expand Down

0 comments on commit 5777df8

Please sign in to comment.