#!ipxe set menu-timeout 5000 set submenu-timeout ${menu-timeout} set menu-default localboot :start menu iPXE boot menu item --gap -- ------------------------------- PXE options ------------------------------- item --key i install-amd64 AMD64 kickstart item --key d debcore-amd64 AMD64 debcore boot (no changes on local drives) item --gap -- ------------------------------ Local options ------------------------------ item --key l localboot Exit iPXE and continue boot item --key c config Configure settings item --key s shell Drop to iPXE shell item reboot Reboot computer item --gap -- ------------------------------------------------------------------------------ choose --timeout ${menu-timeout} --default ${menu-default} selected || goto cancel set menu-timeout 0 goto ${selected} :cancel echo You cancelled the menu, dropping you to a shell :shell echo Type 'exit' to get the back to the menu shell set menu-timeout 0 set submenu-timeout 0 goto start :failed echo Booting failed, dropping to shell goto shell :reboot reboot :localboot exit :config config goto start :back set submenu-timeout 0 clear submenu-default goto start ############ MAIN MENU ITEMS ############ :install-amd64 echo Kickstarting machine... I hope you know what you're doing. you have about 60 seconds to kill the machine if you don't kernel /wit-pxeboot/vmlinuz-amd64 initrd=initramfs-amd64.gz console=tty0 console=ttyS0,115200n8 console=ttyS1,115200n8 console=ttyAMA0,115200n8 size=5000 execstartup="DEV=/dev/vda /usr/bin/create_local_install.sh" initrd /wit-pxeboot/initramfs-amd64.gz boot || goto failed goto start :debcore-amd64 echo Booting Debcore from tftp kernel /wit-pxeboot/vmlinuz-amd64 initrd=initramfs-amd64.gz console=tty0 console=ttyS0,115200n8 console=ttyS1,115200n8 console=ttyAMA0,115200n8 size=5000 initrd /wit-pxeboot/initramfs-amd64.gz boot || goto failed goto start