Skip to content

Commit

Permalink
Relax checks on tftp filename in bootloader
Browse files Browse the repository at this point in the history
Previously checks for tftp-server and filename were hard set
to search for certain files to load.

This relaxes that check and if next-server and filename are set
it will attempt to load the local menu.
  • Loading branch information
antonym committed Dec 10, 2023
1 parent 1b9d2a9 commit 6483262
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions roles/netbootxyz/templates/disks/netboot.xyz.j2
Original file line number Diff line number Diff line change
Expand Up @@ -39,12 +39,7 @@ iseq ${use_proxydhcp_settings} true && set tftp-server ${proxydhcp/next-server}
goto load-custom-ipxe

:load-custom-ipxe
isset ${tftp-server} && iseq ${filename} {{ site_name }}.kpxe && goto tftpmenu ||
isset ${tftp-server} && iseq ${filename} {{ site_name }}-undionly.kpxe && goto tftpmenu ||
isset ${tftp-server} && iseq ${filename} {{ site_name }}.efi && goto tftpmenu ||
isset ${tftp-server} && iseq ${filename} {{ site_name }}-snp.efi && goto tftpmenu ||
isset ${tftp-server} && iseq ${filename} {{ site_name }}-snponly.efi && goto tftpmenu ||
isset ${tftp-server} && iseq ${filename} {{ site_name }}-arm64.efi && goto tftpmenu ||
isset ${tftp-server} && isset ${filename} && goto tftpmenu ||
goto menu

:failsafe
Expand Down

0 comments on commit 6483262

Please sign in to comment.