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:
parent
a7fa2d2251
commit
2ed71b740a
@ -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,
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user