From 2ed71b740ab93e5cd4079c4b5b466b6528342cbc Mon Sep 17 00:00:00 2001 From: lissav Date: Tue, 14 Oct 2008 19:27:40 +0000 Subject: [PATCH] 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 --- xCAT-server/lib/xcat/plugins/anaconda.pm | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/xCAT-server/lib/xcat/plugins/anaconda.pm b/xCAT-server/lib/xcat/plugins/anaconda.pm index 64c61d00a..54eea1291 100644 --- a/xCAT-server/lib/xcat/plugins/anaconda.pm +++ b/xCAT-server/lib/xcat/plugins/anaconda.pm @@ -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, {