systemrescue.ipxe.j2 955 B

123456789101112131415161718192021222324252627282930313233343536373839
  1. #!ipxe
  2. goto ${menu} ||
  3. :live_menu
  4. set os System Rescue CD
  5. menu ${os} - Current Arch [ ${arch} ]
  6. item --gap Currently during boot you need to press ctrl+d/ctrl+c
  7. item --gap repeatedly when init hangs on starting a download
  8. iseq ${arch} x86_64 && set arch_a amd64 || set arch_a ${arch}
  9. set ipparam BOOTIF=${netX/mac} ip=dhcp net.ifnames=0
  10. item --gap ${os} Versions
  11. {% for key, value in endpoints.items() | sort %}
  12. {% if value.os == "systemrescue" %}
  13. item {{ value.version }} ${space} ${os} {{ value.version }}
  14. {% endif %}
  15. {% endfor %}
  16. choose live_version || goto live_exit
  17. goto ${live_version}
  18. {% for key, value in endpoints.items() | sort %}
  19. {% if value.os == "systemrescue" %}
  20. :{{ value.version }}
  21. set url ${live_endpoint}{{ value.path }}
  22. goto boot
  23. {% endif %}
  24. {% endfor %}
  25. :boot
  26. imgfree
  27. kernel ${url}vmlinuz archisobasedir=sysresccd ${ipparam} archiso_http_srv=${url} initrd=initrd ${cmdline}
  28. initrd ${url}initrd
  29. boot
  30. :live_exit
  31. clear menu
  32. exit 0