Skip to content

Commit

Permalink
Do not error on missing pxelinux.0
Browse files Browse the repository at this point in the history
It is not always needed anymore, in fact it is rarely
used.
  • Loading branch information
jjohnson42 committed Oct 2, 2020
1 parent f503115 commit 4f0a510
Showing 1 changed file with 4 additions and 9 deletions.
13 changes: 4 additions & 9 deletions xCAT-server/lib/xcat/plugins/xnba.pm
Original file line number Diff line number Diff line change
Expand Up @@ -732,16 +732,11 @@ sub process_request {

#back to normal business
if (!-r "$globaltftpdir/xcat/pxelinux.0") {
unless (-r $::XCATROOT . "/share/xcat/netboot/syslinux/pxelinux.0") {
$::XNBA_callback->({ error => [ "Unable to find pxelinux.0 at " . $::XCATROOT . "/share/xcat/netboot/syslinux/pxelinux.0" ], errorcode => [1] });
return;
if (-r $::XCATROOT . "/share/xcat/netboot/syslinux/pxelinux.0") {
copy($::XCATROOT . "/share/xcat/netboot/syslinux/pxelinux.0", "$globaltftpdir/xcat/pxelinux.0");
chmod(0644, "$globaltftpdir/xcat/pxelinux.0");
# $::XNBA_callback->({ error => [ "Unable to find pxelinux.0 at " . $::XCATROOT . "/share/xcat/netboot/syslinux/pxelinux.0" ], errorcode => [1] });
}
copy($::XCATROOT . "/share/xcat/netboot/syslinux/pxelinux.0", "$globaltftpdir/xcat/pxelinux.0");
chmod(0644, "$globaltftpdir/xcat/pxelinux.0");
}
unless (-r "$globaltftpdir/xcat/pxelinux.0") {
$::XNBA_callback->({ error => ["Unable to find pxelinux.0 from syslinux"], errorcode => [1] });
return;
}


Expand Down

0 comments on commit 4f0a510

Please sign in to comment.