clonezilla.ipxe.j2 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. #!ipxe
  2. goto ${menu} ||
  3. :live_menu
  4. set os Clonezilla
  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 debian ${space} ${os} Debian Based
  9. item ubuntu ${space} ${os} Ubuntu Based
  10. choose live_version || goto live_exit
  11. menu ${os} ${live_version}
  12. item --gap ${os} Flavors
  13. goto ${live_version}
  14. :debian
  15. {% for key, value in endpoints.items() %}
  16. {% if value.os == "clonezilla" and value.version == "debian" %}
  17. item {{ value.path }} ${space} {{ value.os | title }} {{ value.version | title }} {{ value.flavor | title }}
  18. {% endif %}
  19. {% endfor %}
  20. choose path || goto live_menu
  21. goto clonezilla-boot
  22. :ubuntu
  23. {% for key, value in endpoints.items() %}
  24. {% if value.os == "clonezilla" and value.version == "ubuntu" %}
  25. item {{ value.path }} ${space} {{ value.os | title }} {{ value.version | title }} {{ value.flavor | title }}
  26. {% endif %}
  27. {% endfor %}
  28. choose path || goto live_menu
  29. goto clonezilla-boot
  30. :clonezilla-boot
  31. imgfree
  32. set url ${live_endpoint}${path}
  33. kernel ${url}vmlinuz boot=live username=user union=overlay config components noswap edd=on nomodeset ocs_live_run="ocs-live-general" ocs_live_batch=no net.ifnames=0 nosplash noprompt fetch=${url}filesystem.squashfs initrd=initrd ${cmdline}
  34. initrd ${url}initrd
  35. boot
  36. :live_exit
  37. clear menu
  38. exit 0