live-hrmpf.ipxe.j2 976 B

123456789101112131415161718192021222324252627282930313233343536373839
  1. #!ipxe
  2. # hrmpf
  3. # https://github.com/leahneukirchen/hrmpf/
  4. goto ${menu} ||
  5. :live-hrmpf
  6. clear hrmpf_version
  7. set os hrmpf
  8. set os_arch ${arch}
  9. iseq ${os_arch} x86_64 && set os_arch amd64 ||
  10. menu ${os}
  11. item --gap ${os} Versions
  12. {% for key, value in endpoints.items() | sort %}
  13. {% if value.os == "hrmpf" %}
  14. item {{ value.version }} ${space} ${os} {{ value.version }}
  15. {% endif %}
  16. {% endfor %}
  17. choose hrmpf_version || goto hrmpf_exit
  18. goto ${hrmpf_version}
  19. {% for key, value in endpoints.items() | sort %}
  20. {% if value.os == "hrmpf" %}
  21. :{{ value.version }}
  22. set kernel_url ${live_endpoint}{{ value.path }}
  23. goto boot
  24. {% endif %}
  25. {% endfor %}
  26. :boot
  27. imgfree
  28. kernel ${kernel_url}vmlinuz root=live:${kernel_url}squashfs.img ro init=/sbin/init rd.luks=0 rd.md=0 rd.dm=0 gpt add_efi_memmap vconsole.unicode=1 vconsole.keymap=us locale.LANG=en_US.UTF-8 loglevel=6 printk.time=1 consoleblank=0 net.ifnames=0 {{ kernel_params }}
  29. initrd ${kernel_url}initrd
  30. boot
  31. :hrmpf_exit
  32. clear menu
  33. exit 0