custom.ipxe.j2 813 B

123456789101112131415161718192021222324252627282930313233343536
  1. #!ipxe
  2. ###
  3. ### {{ site_name }} custom menu example
  4. ###
  5. :custom
  6. clear custom_choice
  7. menu This is a Test Menu
  8. item --gap This is the first sub menu
  9. item option_one ${space} Loading a kernel and initrd
  10. item option_two ${space} Loading an ISO
  11. item --gap This is a second sub menu
  12. item option_three ${space} Loads another custom sub menu
  13. item option_four ${space} This is option four
  14. choose custom_choice || goto custom_exit
  15. echo ${cls}
  16. goto ${custom_choice}
  17. goto custom_exit
  18. :option_one
  19. kernel http://path.to/vmlinuz
  20. initrd http://path.to/initrd
  21. imgargs vmlinuz put_kernel_img_args_here
  22. boot || goto custom_exit
  23. :option_two
  24. kernel {{ memdisk_location }} raw iso
  25. initrd http://path.to/iso
  26. boot || goto custom_exit
  27. :option_three
  28. echo Chains into another menu...
  29. chain custom1.ipxe || goto custom
  30. :custom_exit
  31. exit