add NODE=<nodename> to kcmdline
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/branches/2.8@16430 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
This commit is contained in:
parent
8c4dfd3470
commit
ea7577eb8f
@ -608,7 +608,9 @@ sub mknetboot
|
||||
);
|
||||
next;
|
||||
}
|
||||
my $kcmdline; # add two more arguments: XCAT=xcatmaster:xcatport and ifname=<eth0>:<mac address>
|
||||
my $kcmdline;
|
||||
# add more arguments: XCAT=xcatmaster:xcatport NODE=<nodename>
|
||||
#and ifname=<eth0>:<mac address>
|
||||
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=<eth0>:<mac address>
|
||||
|
@ -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);
|
||||
|
@ -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=<eth0>, or BOOTIF=<mac>
|
||||
my $netdev = "";
|
||||
|
Loading…
Reference in New Issue
Block a user