-Default to xNBA if PXE plugin is not explicitly called out

git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@4237 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
This commit is contained in:
jbjohnso 2009-09-25 21:19:38 +00:00
parent 8dcec16ed5
commit 20bbf94bea

View File

@ -123,8 +123,8 @@ sub process_request {
if ($rent and $rent->{'netboot'}) {
$currboot=$rent->{'netboot'};
}
if ($request->{arch}->[0] =~ /x86/ and $currboot !~ /pxe/) {
$nrtab->setNodeAttribs($node,{netboot=>'pxe'});
if ($request->{arch}->[0] =~ /x86/ and $currboot !~ /pxe/ and $currboot !~ /xnba/) {
$nrtab->setNodeAttribs($node,{netboot=>'xnba'});
} elsif ($request->{arch}->[0] =~ /ppc/ and $currboot !~ /yaboot/) {
$nrtab->setNodeAttribs($node,{netboot=>'yaboot'});
}