diff --git a/xCAT-server/lib/xcat/plugins/anaconda.pm b/xCAT-server/lib/xcat/plugins/anaconda.pm index b542cc7dc..046400d05 100644 --- a/xCAT-server/lib/xcat/plugins/anaconda.pm +++ b/xCAT-server/lib/xcat/plugins/anaconda.pm @@ -608,7 +608,9 @@ sub mknetboot ); next; } - my $kcmdline; # add two more arguments: XCAT=xcatmaster:xcatport and ifname=: + my $kcmdline; + # add more arguments: XCAT=xcatmaster:xcatport NODE= + #and ifname=: if($statelite){ if ($rootfstype ne "ramdisk") { # get entry for nfs root if it exists: @@ -700,6 +702,7 @@ sub mknetboot $kcmdline = "imgurl=$httpmethod://$imgsrv:$httpport/$rootimgdir/rootimg.$suffix "; $kcmdline .= "XCAT=$xcatmaster:$xcatdport "; + $kcmdline .= "NODE=$node "; } # add one parameter: ifname=: diff --git a/xCAT-server/lib/xcat/plugins/debian.pm b/xCAT-server/lib/xcat/plugins/debian.pm index ac48b5a52..ffab2ab89 100644 --- a/xCAT-server/lib/xcat/plugins/debian.pm +++ b/xCAT-server/lib/xcat/plugins/debian.pm @@ -1334,6 +1334,8 @@ sub mknetboot $kcmdline .= $statemnt ." "; $kcmdline .= "XCAT=$xcatmaster:$xcatdport "; + $kcmdline .= + "NODE=$node "; # BEGIN service node my $isSV = xCAT::Utils->isServiceNode(); my $res = xCAT::Utils->runcmd("hostname", 0); diff --git a/xCAT-server/lib/xcat/plugins/sles.pm b/xCAT-server/lib/xcat/plugins/sles.pm index 4174bac13..a23b20259 100644 --- a/xCAT-server/lib/xcat/plugins/sles.pm +++ b/xCAT-server/lib/xcat/plugins/sles.pm @@ -553,6 +553,7 @@ sub mknetboot "imgurl=$httpmethod://$imgsrv/$rootimgdir/rootimg.$suffix "; } $kcmdline .= "XCAT=$xcatmaster:$xcatdport quiet "; + $kcmdline .= "NODE=$node "; # add the kernel-booting parameter: netdev=, or BOOTIF= my $netdev = "";