live-voyager.ipxe.j2 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  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 bionic ${space} ${os} Bionic
  9. item buster ${space} ${os} Buster
  10. item eoan ${space} ${os} Eoan
  11. choose live_version || goto live_exit
  12. goto ${live_version}
  13. :bionic
  14. set squash_url ${live_endpoint}{{ endpoints["voyager-bionic-squash"].path }}filesystem.squashfs
  15. set kernel_url ${live_endpoint}{{ endpoints["voyager-bionic-squash"].path }}
  16. imgfree
  17. kernel ${kernel_url}vmlinuz ip=dhcp boot=casper netboot=http fetch=${squash_url} initrd=initrd
  18. initrd ${kernel_url}initrd
  19. boot
  20. :buster
  21. set squash_url ${live_endpoint}{{ endpoints["voyager-buster-squash"].path }}filesystem.squashfs
  22. set kernel_url ${live_endpoint}{{ endpoints["voyager-buster-squash"].path }}
  23. imgfree
  24. kernel ${kernel_url}vmlinuz boot=live fetch=${squash_url} initrd=initrd
  25. initrd ${kernel_url}initrd
  26. boot
  27. :eoan
  28. set squash_url ${live_endpoint}{{ endpoints["voyager-eoan-squash"].path }}filesystem.squashfs
  29. set kernel_url ${live_endpoint}{{ endpoints["voyager-eoan-squash"].path }}
  30. imgfree
  31. kernel ${kernel_url}vmlinuz ip=dhcp boot=casper netboot=url url=${squash_url} initrd=initrd
  32. initrd ${kernel_url}initrd
  33. boot
  34. :live_exit
  35. clear menu
  36. exit 0