live-lite.ipxe.j2 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839
  1. #!ipxe
  2. goto ${menu} ||
  3. :live_menu
  4. set os Linux Lite
  5. menu ${os} - Current Arch [ ${arch} ]
  6. item --gap Use the username linuxlite with a blank password
  7. iseq ${arch} x86_64 && set arch_a amd64 || set arch_a ${arch}
  8. item --gap ${os} Versions
  9. item 5 ${space} ${os} 5
  10. item 4 ${space} ${os} 4
  11. choose live_version || goto live_exit
  12. goto ${live_version}
  13. :4
  14. set squash_url ${live_endpoint}{{ endpoints["linux-lite-4-squash"].path }}filesystem.squashfs
  15. set kernel_url ${live_endpoint}{{ endpoints["linux-lite-4-squash"].path }}
  16. goto boot-4
  17. :5
  18. set squash_url ${live_endpoint}{{ endpoints["linux-lite-5-squash"].path }}filesystem.squashfs
  19. set kernel_url ${live_endpoint}{{ endpoints["linux-lite-5-squash"].path }}
  20. goto boot-5
  21. :boot-4
  22. imgfree
  23. kernel ${kernel_url}vmlinuz ip=dhcp boot=casper netboot=http fetch=${squash_url} username=linuxlite userfullname=linuxlite initrd=initrd ${cmdline}
  24. initrd ${kernel_url}initrd
  25. boot
  26. :boot-5
  27. kernel ${kernel_url}vmlinuz ip=dhcp boot=casper netboot=url url=${squash_url} username=linuxlite userfullname=linuxlite initrd=initrd ${cmdline}
  28. initrd ${kernel_url}initrd
  29. boot
  30. :live_exit
  31. clear menu
  32. exit 0