mirror of
				https://github.com/xcat2/xcat-core.git
				synced 2025-10-31 11:22:27 +00:00 
			
		
		
		
	-Implement addkcmdline handling in yaboot plugin
-Comment out redundant anaconda handling of addkcmdline handling since it is moved to pxe and yaboot plugins git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@3657 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
This commit is contained in:
		| @@ -178,8 +178,8 @@ sub mknetboot | ||||
|     my $hmhash = | ||||
|           $hmtab->getNodesAttribs(\@nodes, | ||||
|                                  ['serialport', 'serialspeed', 'serialflow']); | ||||
|     my $addkcmdhash = | ||||
|         $bptab->getNodesAttribs(\@nodes, ['addkcmdline']); | ||||
|     #my $addkcmdhash = | ||||
|     #    $bptab->getNodesAttribs(\@nodes, ['addkcmdline']); | ||||
|     foreach $node (@nodes) | ||||
|     { | ||||
|         my $ent = $oents{$node}->[0]; #ostab->getNodeAttribs($node, ['os', 'arch', 'profile']); | ||||
| @@ -360,13 +360,13 @@ sub mknetboot | ||||
|         } | ||||
|         # add the addkcmdline attribute  to the end | ||||
|         # of the command, if it exists | ||||
|         my $addkcmd   = $addkcmdhash->{$node}->[0]; | ||||
|         #my $addkcmd   = $addkcmdhash->{$node}->[0]; | ||||
|         # add the extra addkcmd command info, if in the table | ||||
|         if ($addkcmd->{'addkcmdline'}) { | ||||
|                 $kcmdline .= " "; | ||||
|                 $kcmdline .= $addkcmd->{'addkcmdline'}; | ||||
|         #if ($addkcmd->{'addkcmdline'}) { | ||||
|         #        $kcmdline .= " "; | ||||
|         #        $kcmdline .= $addkcmd->{'addkcmdline'}; | ||||
|             | ||||
|         } | ||||
|         #} | ||||
|          | ||||
| 	my $kernstr="xcat/netboot/$osver/$arch/$profile/kernel"; | ||||
| 	if ($xenstyle) { | ||||
| @@ -410,8 +410,8 @@ sub mkinstall | ||||
|     my %hents =  | ||||
|               %{$hmtab->getNodesAttribs(\@nodes, | ||||
|                                      ['serialport', 'serialspeed', 'serialflow'])}; | ||||
|     my $addkcmdhash = | ||||
|         $bptab->getNodesAttribs(\@nodes, ['addkcmdline']); | ||||
|     #my $addkcmdhash = | ||||
|     #    $bptab->getNodesAttribs(\@nodes, ['addkcmdline']); | ||||
|     require xCAT::Template; | ||||
|     foreach $node (@nodes) | ||||
|     { | ||||
| @@ -624,12 +624,12 @@ sub mkinstall | ||||
|             $kcmdline .= " noipv6"; | ||||
|             # add the addkcmdline attribute  to the end | ||||
|             # of the command, if it exists | ||||
|             my $addkcmd   = $addkcmdhash->{$node}->[0]; | ||||
|             #my $addkcmd   = $addkcmdhash->{$node}->[0]; | ||||
|             # add the extra addkcmd command info, if in the table | ||||
|             if ($addkcmd->{'addkcmdline'}) { | ||||
|                     $kcmdline .= " "; | ||||
|                     $kcmdline .= $addkcmd->{'addkcmdline'}; | ||||
|             } | ||||
|             #if ($addkcmd->{'addkcmdline'}) { | ||||
|             #        $kcmdline .= " "; | ||||
|             #        $kcmdline .= $addkcmd->{'addkcmdline'}; | ||||
|             #} | ||||
|  | ||||
|             $bptab->setNodeAttribs( | ||||
|                                    $node, | ||||
|   | ||||
| @@ -86,6 +86,9 @@ sub setstate { | ||||
|       } | ||||
|       $kern->{kcmdline} =~ s/!myipfn!/$ipfn/; | ||||
|   } | ||||
|   if ($kern->{addkcmdline}) { | ||||
|       $kern->{kcmdline} .= " ".$kern->{addkcmdline}; | ||||
|   } | ||||
|   my $pcfg; | ||||
|   unless (-d "$tftpdir/etc") { | ||||
|      mkpath("$tftpdir/etc"); | ||||
| @@ -316,7 +319,7 @@ sub process_request { | ||||
|   } | ||||
|   if ($errored) { return; } | ||||
|   my $bptab=xCAT::Table->new('bootparams',-create=>1); | ||||
|   my $bphash = $bptab->getNodesAttribs(\@nodes,['kernel','initrd','kcmdline']); | ||||
|   my $bphash = $bptab->getNodesAttribs(\@nodes,['kernel','initrd','kcmdline','addkcmdline']); | ||||
|   my $chaintab=xCAT::Table->new('chain',-create=>1); | ||||
|   my $chainhash=$chaintab->getNodesAttribs(\@nodes,['currstate']); | ||||
|   my $mactab=xCAT::Table->new('mac',-create=>1); | ||||
|   | ||||
		Reference in New Issue
	
	Block a user