admins@GT-AX6000-0FC8:/tmp/mnt/usbkey/tftboot# cat menu.ipxe
#!ipxe
iseq ${platform} efi && goto esxi_efi || goto esxi_bios
######## UEFI MAIN MENU BEGIN ###################
:esxi_efi
menu Welcome to iPXE's Boot Menu for UEFI
item
item --gap -- ------------------------------ Utilities -------------------------
item netboot Goto netboot.xyz (lets you PXE boot various OS from the network.)
item synology Active Backup for Business (Synology Restore)
item debian Debian Netboot (Linux system)
item ubuntu Ubuntu Netboot (Linux system)
item --gap -- ------------------------------ Advanced --------------------------
item config Configure settings
item shell Enter iPXE shell
item reboot Reboot
item exit Exit (boot local disk)
choose --default exit --timeout 60000 target && goto ${target}
########## UTILITY ITEMS ##############
:netboot
#open iso with iso editor and remove pmagic to make it ligther
#chain --autofree
http://netboot.cz/index.ipxe || goto failed
chain --autofree
https://boot.netboot.xyz || goto failed
#chain
http://boot.ipxe.org/demo/boot.php || goto failed
goto esxi_efi
:synology
kernel
http://192.168.168.254:8000/uefi/wimboot
initrd
http://192.168.168.254:8000/uefi/SynologyRestoreMedia/Boot/BCD
initrd
http://192.168.168.254:8000/uefi/SynologyRestoreMedia/Boot/boot.sdi
initrd
http://192.168.168.254:8000/uefi/SynologyRestoreMedia/sources/boot.wim
boot || goto failed
goto esxi_efi
:debian
echo Booting Debian netboot
set url
https://mirrors.aliyun.com/debian/d...urrent/images/netboot/debian-installer/amd64/
kernel ${url}linux initrd=initrd.gz
initrd ${url}initrd.gz
boot || goto start
goto esxi_efi
:ubuntu
echo Booting Ubuntu netboot
set base-url
http://archive.ubuntu.com/ubuntu/di...legacy-images/netboot/ubuntu-installer/amd64/
kernel ${base-url}/linux initrd=initrd.gz
initrd ${base-url}/initrd.gz
boot || goto start
goto esxi_efi
:shell
echo Type exit to get the back to the menu
shell
set menu-timeout 0
goto esxi_efi
:failed
echo Booting failed, dropping to shell
goto shell
:reboot
reboot
:exit
exit
:cancel
echo You cancelled the menu, dropping you to a shell
:config
config
goto esxi_efi
:back
set submenu-timeout 0
clear submenu-default
goto esxi_efi
######## UEFI MAIN MENU END ###################
######## BIOS MAIN MENU BEGIN ###################
:esxi_bios
menu Welcome to iPXE's Boot Menu for Legacy BIOS
item
item --gap -- ------------------------------ Utilities -------------------------
item netboot1 Goto netboot.xyz (lets you PXE boot various OS from the network.)
item acronis1 Boot Acronis True Image 2021 (Rescute system)
item synology1 Active Backup for Business (Synology Restore)
item systemrescue1 systemrescue-9.06-amd64.iso (SystemRescue)
item --gap -- ------------------------------ Advanced --------------------------
item config Configure settings
item shell Enter iPXE shell
item reboot Reboot
item exit Exit (boot local disk)
choose --default exit --timeout 60000 target && goto ${target}
########## UTILITY ITEMS ##############
:netboot1
#open iso with iso editor and remove pmagic to make it ligther
chain --autofree
http://boot.netboot.xyz || goto failed
goto esxi_bios
:acronis1
#open iso with iso editor and remove pmagic to make it ligther
initrd
http://192.168.168.254:8000/images/AcronisTrueImage2021.iso
kernel
http://192.168.168.254:8000/memdisk iso raw
boot || goto failed
goto esxi_bios
:synology1
#open iso with iso editor and remove pmagic to make it ligther
initrd
http://192.168.168.254:8000/images/SynologyRestoreMedia.iso
kernel
http://192.168.168.254:8000/memdisk iso raw
boot || goto failed
goto esxi_bios
:systemrescue1
#open iso with iso editor and remove pmagic to make it ligther
initrd
http://192.168.168.254:8000/images/systemrescue-9.06-amd64.iso
kernel
http://192.168.168.254:8000/memdisk iso raw
boot || goto failed
goto esxi_bios
:shell
echo Type exit to get the back to the menu
shell
set menu-timeout 0
goto esxi_bios
:failed
echo Booting failed, dropping to shell
goto shell
:reboot
reboot
:exit
exit
:cancel
echo You cancelled the menu, dropping you to a shell
:config
config
goto esxi_bios
:back
set submenu-timeout 0
clear submenu-default
goto esxi_bios
######## BIOS MAIN MENU END ###################