live-feren.ipxe.j2 851 B

123456789101112131415161718192021222324252627282930313233343536
  1. #!ipxe
  2. goto ${menu} ||
  3. :live_menu
  4. set os Feren OS 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 current ${space} ${os} Current
  9. choose live_version || goto live_exit
  10. menu ${os} ${live_version}
  11. item --gap ${os} Flavors
  12. goto ${live_version}
  13. :current
  14. {% for key, value in endpoints.items() %}
  15. {% if value.os == "feren" %}
  16. item {{ value.path }} ${space} {{ value.os | title }} {{ value.version | title }}
  17. {% endif %}
  18. {% endfor %}
  19. choose path || goto live_menu
  20. goto feren-boot
  21. :feren-boot
  22. imgfree
  23. set squash_url ${live_endpoint}${path}filesystem.squashfs
  24. set kernel_url ${live_endpoint}${path}
  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. :live_exit
  29. clear menu
  30. exit 0