1
0

utils-arm.ipxe.j2 927 B

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. #!ipxe
  2. menu Utilities
  3. item --gap Utilities:
  4. {% for key, value in utilitiesarm.items() | sort(attribute='1.name') %}
  5. {% if value.enabled %}
  6. item {{ key }} ${space} {{ value.name }}
  7. {% endif %}
  8. {% endfor %}
  9. item --gap netboot.xyz tools:
  10. item nbxyz ${space} netboot.xyz endpoints
  11. choose --default ${menu} menu || goto utils_exit
  12. echo ${cls}
  13. goto ${menu} ||
  14. chain ${menu}.ipxe || goto utils_exit
  15. goto utils_exit
  16. {% for key, value in utilitiesarm.items() | sort %}
  17. {% if value.enabled | bool and value.type == "direct" %}
  18. :{{ key }}
  19. imgfree
  20. kernel {{ value.kernel }}
  21. {% if value.initrd is defined and value.initrd %}
  22. initrd {{ value.initrd }}
  23. {% endif %}
  24. boot
  25. goto utils_exit
  26. {% endif %}
  27. {% endfor %}
  28. {% for key, value in utilitiesefi.items() | sort %}
  29. {% if value.enabled | bool and value.type == "sanboot" %}
  30. :{{ key }}
  31. imgfree
  32. sanboot {{ value.kernel }}
  33. goto utils_exit
  34. {% endif %}
  35. {% endfor %}
  36. :utils_exit
  37. clear menu
  38. exit 0