ipfire.ipxe.j2 998 B

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. #!ipxe
  2. # IPFire
  3. # https://www.ipfire.org/
  4. goto ${menu} ||
  5. :ipfire
  6. clear osversion
  7. set os {{ releases.ipfire.name }}
  8. menu ${os} - Image Sig Checks: [${img_sigs_enabled}]
  9. {% for item in releases.ipfire.versions %}
  10. item {{ item.code_name }} ${space} ${os} {{ item.name }}
  11. {% endfor %}
  12. isset ${osversion} || choose osversion || goto linux_menu
  13. echo ${cls}
  14. set ipfire_mirror {{ releases.ipfire.mirror }}
  15. set dir releases/ipfire-2.x/${osversion}/images/x86_64
  16. goto ipfire_images
  17. :ipfire_images
  18. imgfree
  19. kernel https://${ipfire_mirror}/${dir}/vmlinuz ${console} vga=791 initrd=instroot
  20. initrd https://${ipfire_mirror}/${dir}/instroot
  21. echo
  22. echo MD5sums:
  23. md5sum vmlinuz instroot
  24. iseq ${img_sigs_enabled} true && goto verify_sigs || goto skip_sigs
  25. :verify_sigs
  26. echo
  27. echo Checking signatures...
  28. imgverify vmlinuz ${sigs}ipfire/${dir}/vmlinuz.sig || goto error
  29. imgverify instroot ${sigs}ipfire/${dir}/instroot.sig || goto error
  30. echo Signatures verified!
  31. echo
  32. :skip_sigs
  33. boot
  34. :ipfire_exit
  35. clear menu
  36. exit 0