From f698a132b15fbf8eb324dcac5accdaf8578c9abe Mon Sep 17 00:00:00 2001 From: jbjohnso Date: Thu, 7 May 2009 14:13:36 +0000 Subject: [PATCH] -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 --- xCAT-server/lib/xcat/plugins/anaconda.pm | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/xCAT-server/lib/xcat/plugins/anaconda.pm b/xCAT-server/lib/xcat/plugins/anaconda.pm index 3801b4682..fc337d37b 100644 --- a/xCAT-server/lib/xcat/plugins/anaconda.pm +++ b/xCAT-server/lib/xcat/plugins/anaconda.pm @@ -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,