Browse Source

adding tftp option to boot menu by default to support local templates from tftp server

thelamer 5 years ago
parent
commit
5c9dcdb2c5
1 changed files with 2 additions and 0 deletions
  1. 2 0
      roles/netbootxyz/templates/disks/ipxe-bootloader.j2

+ 2 - 0
roles/netbootxyz/templates/disks/ipxe-bootloader.j2

@@ -5,6 +5,7 @@ set boldoff ${esc:string}[22m
 set fg_gre ${esc:string}[32m
 set fg_cya ${esc:string}[36m
 set fg_whi ${esc:string}[37m
+set TFTP_ERR Local TFTP failed... attempting remote HTTPS 
 set HTTPS_ERR HTTPS appears to have failed... attempting HTTP
 set HTTP_ERR HTTP has failed, localbooting...
 set boot_domain {{ boot_domain }}
@@ -46,6 +47,7 @@ echo Attempting chainload of ${boot_domain}...
 goto menu || goto failsafe
 
 :menu
+chain --autofree tftp://${next-server}/menu.ipxe || echo ${TFTP_ERR}
 set conn_type https
 chain --autofree https://${boot_domain}/menu.ipxe || echo ${HTTPS_ERR}
 sleep 5