live-ubuntu.ipxe.j2 2.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687
  1. #!ipxe
  2. goto ${menu} ||
  3. :live_menu
  4. set os Ubuntu Live
  5. menu ${os} - Current Arch [ ${arch} ]
  6. iseq ${arch} x86_64 && set arch_a amd64 || set arch_a ${arch}
  7. item --gap ${os} Versions
  8. item hirsute ${space} ${os} 21.04
  9. item groovy ${space} ${os} 20.10
  10. item focal ${space} ${os} 20.04
  11. item bionic ${space} ${os} 18.04
  12. choose live_version || goto live_exit
  13. menu ${os} ${live_version}
  14. item --gap ${os} Flavors
  15. goto ${live_version}
  16. :hirsute
  17. {% for key, value in endpoints.items() | sort %}
  18. {% if value.os == "ubuntu" and 'squash' in key and value.version == "21.04" %}
  19. item {{ key }} ${space} {{ value.os | title }} {{ value.version }} {{ value.flavor | title }}
  20. {% endif %}
  21. {% endfor %}
  22. goto flavor_select
  23. :groovy
  24. {% for key, value in endpoints.items() | sort %}
  25. {% if value.os == "ubuntu" and 'squash' in key and value.version == "20.10" %}
  26. item {{ key }} ${space} {{ value.os | title }} {{ value.version }} {{ value.flavor | title }}
  27. {% endif %}
  28. {% endfor %}
  29. goto flavor_select
  30. :focal
  31. {% for key, value in endpoints.items() | sort %}
  32. {% if value.os == "ubuntu" and 'squash' in key and value.version == "20.04" %}
  33. item {{ key }} ${space} {{ value.os | title }} {{ value.version }} {{ value.flavor | title }}
  34. {% endif %}
  35. {% endfor %}
  36. goto flavor_select
  37. :bionic
  38. {% for key, value in endpoints.items() | sort %}
  39. {% if value.os == "ubuntu" and 'squash' in key and value.version == "18.04" %}
  40. item {{ key }} ${space} {{ value.os | title }} {{ value.version }} {{ value.flavor | title }}
  41. {% endif %}
  42. {% endfor %}
  43. goto flavor_select
  44. :flavor_select
  45. choose flavor || goto live_menu
  46. echo ${cls}
  47. goto ${flavor} ||
  48. {% for key, value in endpoints.items() | sort %}
  49. {% if value.os == "ubuntu" and 'squash' in key %}
  50. {% set kernel_name = value.kernel %}
  51. :{{ key }}
  52. set squash_url ${live_endpoint}{{ value.path }}filesystem.squashfs
  53. {% for key, value in endpoints.items() | sort %}
  54. {% if key == kernel_name %}
  55. set kernel_url ${live_endpoint}{{ value.path }}
  56. {% endif %}
  57. {% endfor %}
  58. goto {{ value.version }}-boot
  59. {% endif %}
  60. {% endfor %}
  61. :18.04-boot
  62. imgfree
  63. kernel ${kernel_url}vmlinuz ip=dhcp boot=casper netboot=http fetch=${squash_url} {{ kernel_params }}
  64. initrd ${kernel_url}initrd
  65. boot
  66. :20.04-boot
  67. :20.10-boot
  68. :21.04-boot
  69. imgfree
  70. kernel ${kernel_url}vmlinuz ip=dhcp boot=casper netboot=url url=${squash_url} {{ kernel_params }}
  71. initrd ${kernel_url}initrd
  72. boot
  73. :live_exit
  74. clear menu
  75. exit 0