ipxe: switch to root-path
All checks were successful
build ipxe / make ipxe (push) Successful in 5m8s

This commit is contained in:
misthios 2024-03-05 12:28:09 +01:00
parent e02e33ceab
commit 532dd13a3c

View File

@ -4,27 +4,21 @@
dhcp dhcp
#Print useful information for debugging #Print useful information for debugging
echo next-server is ${next-server} echo root-path is ${root-path}
echo filaneme is ${filename} echo filaneme is ${filename}
echo MAC address is ${net0/mac} echo MAC address is ${net0/mac}
echo IP address is ${ip} echo IP address is ${ip}
#Provisioner uses the following pattern: /boot/{mac} #Provisioner uses the following pattern: /boot/{mac}
set server http://${next-server}/boot/${mac:hexhyp} set server http://${root-path}/boot/${mac:hexhyp}
echo Server is ${server} echo Server is ${server}
sleep 5 sleep 5
# Make an HTTP HEAD request to check if the URL exists # Download the correct bootscript or continue normal boot
http ${server} head || goto link_does_not_exist chain ${server}|| goto link_does_not_exist
#Make sure the link is valid
isset ${http_status} || goto link_does_not_exist
iseq ${http_status} 200 && goto link_exists
:link_does_not_exist :link_does_not_exist
sleep 5 sleep 5
echo Link ${server} does not exist, booting from next bios/uefi target echo Link ${server} does not exist, booting from next bios/uefi target
exit exit
:link_exists
chain ${server}