Moves win_base_url and rhel_base_url to local-vars.ipxe

Moves win_base_url and rhel_base_url to local-vars.ipxe as they are
locally defined variables by the user and are not defined for the
hosted site.

Prevents override of variables by the loaded boot.cfg.

Closes https://github.com/netbootxyz/netboot.xyz/issues/1344
This commit is contained in:
Antony Messerli 2024-11-14 23:44:14 -06:00
parent 2f95dcaad5
commit af23557148
4 changed files with 9 additions and 11 deletions

View File

@ -7,6 +7,11 @@ All notable changes to this project will be documented in this file.
## [2.0.84] - 2024-00-00
## Changed
- Moves win_base_url and rhel_base_url out of boot.cfg to local-vars.ipxe as they are
user defined variables.
## [2.0.83] - 2024-11-07
## Changed

View File

@ -8,3 +8,7 @@
# Please note that this variable is always read from the local-vars.ipxe onb the tftp server the root DHCP provided
# If the variable isn't present at runtime, the user will be queried to press a key to boot from the proxy DHCP prtovided ftfp server
#set use_proxydhcp_settings true
### Media Locations for Licensed Distros
#set rhel_base_url http://my_rhel_mirror/rhel/
#set win_base_url http://my_windows_mirror/windows/

View File

@ -25,13 +25,6 @@ iseq ${platform} efi && set ipxe_disk netboot.xyz-snponly.efi || set ipxe_disk n
# set default boot timeout
set boot_timeout {{ boot_timeout }}
######################################
# Media Locations for Licensed Distros
######################################
set rhel_base_url {{ rhel_base_url | default("") }}
set win_base_url {{ win_base_url | default("") }}
##################
# official mirrors
##################

View File

@ -37,10 +37,6 @@ make_num_jobs: 1
# supergrub:
# enabled: false
# set licensed media locations in boot.cfg
# win_base_url:
# rhel_base_url:
early_menu_enabled: false
early_menu_contents: |
### early menu overrides