add support for the addkcmdline attribute from the bootparams table

git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@2347 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
This commit is contained in:
lissav 2008-10-14 19:27:40 +00:00
parent a7fa2d2251
commit 2ed71b740a

View File

@ -174,6 +174,8 @@ sub mknetboot
my $hmhash =
$hmtab->getNodesAttribs(\@nodes,
['serialport', 'serialspeed', 'serialflow']);
my $addkcmdhash =
$bptab->getNodesAttribs(\@nodes, ['addkcmdline']);
foreach $node (@nodes)
{
my $ent = $oents{$node}->[0]; #ostab->getNodeAttribs($node, ['os', 'arch', 'profile']);
@ -347,6 +349,16 @@ sub mknetboot
$kcmdline .= "n8r";
}
}
# add the addkcmdline attribute to the end
# of the command, if it exists
my $addkcmd = $addkcmdhash->{$node}->[0];
# add the extra addkcmd command info, if in the table
if ($addkcmd->{'addkcmdline'}) {
$kcmdline .= " ";
$kcmdline .= $addkcmd->{'addkcmdline'};
}
$bptab->setNodeAttribs(
$node,
{