Hier wird schließlich das Boot-Menu erstellt:
#!ipxe :main_menu iseq ${arch} x64 && goto main_x64 || iseq ${arch} x32 && goto main_x32 || :main_x64 menu iPXE ${archl}-${arch} (${platform}) netboot for Com@Sutra item --gap -- -------------- Operating systems ----------------- item --gap -- ------------------ live systems ------------------ item --gap -- ------------------ Advanced ---------------------- item shell Drop to iPXE shell item reboot reboots the machine item exit Exit to BIOS choose target && goto ${target} :main_x32 menu iPXE ${archl}-${arch} (${platform}) netboot for Com@Sutra item --gap -- -------------- Operating systems ----------------- item --gap -- ------------------ live systems ------------------ item --gap -- ------------------ Advanced ---------------------- item shell Drop to iPXE shell item reboot reboots the machine item exit Exit to BIOS choose target && goto ${target} :failed echo Booting failed, dropping to shell goto shell :shell echo Type 'exit' to get back to the menu shell set menu-timeout 0 set submenu-timeout 0 imgfree goto main_menu :reboot reboot :exit exit