-Implement addkcmdline for RHEL installs

git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@3306 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
This commit is contained in:
jbjohnso 2009-05-07 14:13:36 +00:00
parent dac2479a1d
commit f698a132b1

View File

@ -406,6 +406,8 @@ sub mkinstall
my %hents =
%{$hmtab->getNodesAttribs(\@nodes,
['serialport', 'serialspeed', 'serialflow'])};
my $addkcmdhash =
$bptab->getNodesAttribs(\@nodes, ['addkcmdline']);
require xCAT::Template;
foreach $node (@nodes)
{
@ -611,6 +613,14 @@ sub mkinstall
}
}
$kcmdline .= " noipv6";
# 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,