live-regolith.ipxe.j2 655 B

123456789101112131415161718192021222324252627
  1. #!ipxe
  2. goto ${menu} ||
  3. :live_menu
  4. set os Regolith
  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 current ${space} ${os} Current
  9. choose live_version || goto live_exit
  10. goto ${live_version}
  11. :current
  12. set squash_url ${live_endpoint}{{ endpoints["regolith-current"].path }}filesystem.squashfs
  13. set kernel_url ${live_endpoint}{{ endpoints["regolith-current"].path }}
  14. goto current-boot
  15. :current-boot
  16. imgfree
  17. kernel ${kernel_url}vmlinuz ip=dhcp boot=casper netboot=http fetch=${squash_url} initrd=initrd ${cmdline}
  18. initrd ${kernel_url}initrd
  19. boot
  20. :live_exit
  21. clear menu
  22. exit 0