1
0

clonezilla.ipxe.j2 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. #!ipxe
  2. goto ${menu} ||
  3. :live_menu
  4. set os_arch ${arch}
  5. iseq ${os_arch} x86_64 && set os_arch amd64 ||
  6. iseq ${os_arch} i386 && set os_arch i686 ||
  7. set os Clonezilla
  8. menu ${os}
  9. item --gap ${os} Versions
  10. item debian ${space} ${os} Debian Based
  11. iseq ${os_arch} amd64 && item ubuntu ${space} ${os} Ubuntu Based ||
  12. choose live_version || goto live_exit
  13. menu ${os} ${live_version} - ${os_arch}
  14. item --gap ${os} Flavors
  15. goto ${live_version}
  16. :debian
  17. {% for key, value in endpoints.items() %}
  18. {% if value.os == "clonezilla" and "debian" in key %}
  19. iseq ${os_arch} {{ value.arch }} && item {{ value.path }} ${space} {{ value.os | title }} {{ value.version | title }} {{ value.flavor | title }} ||
  20. {% endif %}
  21. {% endfor %}
  22. choose path || goto live_menu
  23. goto clonezilla-boot
  24. :ubuntu
  25. {% for key, value in endpoints.items() %}
  26. {% if value.os == "clonezilla" and "ubuntu" in key %}
  27. iseq ${os_arch} {{ value.arch }} && item {{ value.path }} ${space} {{ value.os | title }} {{ value.version | title }} {{ value.flavor | title }} ||
  28. {% endif %}
  29. {% endfor %}
  30. choose path || goto live_menu
  31. goto clonezilla-boot
  32. :clonezilla-boot
  33. imgfree
  34. set url ${live_endpoint}${path}
  35. 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 {{ kernel_params }}
  36. initrd ${url}initrd
  37. boot
  38. :live_exit
  39. clear menu
  40. exit 0