Intial commit

This commit is contained in:
2022-06-27 19:20:05 +02:00
commit 8724db3eb6
10 changed files with 543 additions and 0 deletions

54
iPXE/boot.ipxe Normal file
View File

@@ -0,0 +1,54 @@
#!ipxe
# Some menu defaults
set menu-timeout 50000
set submenu-timeout ${menu-timeout}
isset ${menu-default} || set menu-default exit
:start
menu iPXE boot menu for
item --gap -- ------------------------- Boot server selector ------------------------------
item --key l LDS Boot to LDS
item --key W WDS Boot to WDS
item --gap -- ------------------------- Advanced options -------------------------------
item shell Drop to iPXE shell
item poweroff Shutdown computer
item reboot Reboot computer
item
item --key x exit Exit iPXE and continue BIOS boot
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
:poweroff
poweroff
:reboot
reboot
:exit
exit
#Load LDS
:LDS
chain LDS.ipxe
boot
#Set DHCP user class to "wds" and start networkboot
:WDS
set user-class wds
autoboot || goto failed