1
0

live-voyager.ipxe.j2 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. #!ipxe
  2. goto ${menu} ||
  3. :live_menu
  4. set os Voyager 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 focal ${space} ${os} Focal
  9. item bionic ${space} ${os} Bionic
  10. item buster ${space} ${os} Buster
  11. item eoan ${space} ${os} Eoan
  12. choose live_version || goto live_exit
  13. goto ${live_version}
  14. :focal
  15. set squash_url ${live_endpoint}{{ endpoints["voyager-focal-squash"].path }}filesystem.squashfs
  16. set kernel_url ${live_endpoint}{{ endpoints["voyager-focal-squash"].path }}
  17. imgfree
  18. kernel ${kernel_url}vmlinuz ip=dhcp boot=casper netboot=url url=${squash_url} initrd=initrd ${cmdline}
  19. initrd ${kernel_url}initrd
  20. boot
  21. :bionic
  22. set squash_url ${live_endpoint}{{ endpoints["voyager-bionic-squash"].path }}filesystem.squashfs
  23. set kernel_url ${live_endpoint}{{ endpoints["voyager-bionic-squash"].path }}
  24. imgfree
  25. kernel ${kernel_url}vmlinuz ip=dhcp boot=casper netboot=http fetch=${squash_url} initrd=initrd ${cmdline}
  26. initrd ${kernel_url}initrd
  27. boot
  28. :buster
  29. set squash_url ${live_endpoint}{{ endpoints["voyager-buster-squash"].path }}filesystem.squashfs
  30. set kernel_url ${live_endpoint}{{ endpoints["voyager-buster-squash"].path }}
  31. imgfree
  32. kernel ${kernel_url}vmlinuz boot=live fetch=${squash_url} initrd=initrd ${cmdline}
  33. initrd ${kernel_url}initrd
  34. boot
  35. :eoan
  36. set squash_url ${live_endpoint}{{ endpoints["voyager-eoan-squash"].path }}filesystem.squashfs
  37. set kernel_url ${live_endpoint}{{ endpoints["voyager-eoan-squash"].path }}
  38. imgfree
  39. kernel ${kernel_url}vmlinuz ip=dhcp boot=casper netboot=url url=${squash_url} initrd=initrd ${cmdline}
  40. initrd ${kernel_url}initrd
  41. boot
  42. :live_exit
  43. clear menu
  44. exit 0