live-tails.ipxe.j2 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. #!ipxe
  2. # Tails Operating System
  3. # https://tails.boum.org/
  4. goto ${menu} ||
  5. :live-tails
  6. clear tails_version
  7. set os Tails
  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 == "tails" %}
  14. item tails_{{ value.version }} ${space} ${os} {{ value.version }}
  15. {% endif %}
  16. {% endfor %}
  17. choose tails_version || goto tails_exit
  18. goto ${tails_version}
  19. {% for key, value in endpoints.items() | sort %}
  20. {% if value.os == "tails" %}
  21. :tails_{{ value.version }}
  22. set kernel_url ${live_endpoint}{{ value.path }}
  23. set iso_version {{ value.version }}
  24. goto boot
  25. {% endif %}
  26. {% endfor %}
  27. :boot
  28. imgfree
  29. kernel ${kernel_url}vmlinuz boot=live fromiso=/tails.iso config nopersistence noprompt timezone=Etc/UTC splash noautologin module=Tails slab_nomerge slub_debug=FZP mce=0 vsyscall=none page_poison=1 init_on_free=1 mds=full,nosmt {{ kernel_params }}
  30. initrd ${kernel_url}initrd.img
  31. initrd ${kernel_url}9990-misc-helpers.sh /usr/lib/live/boot/9990-misc-helpers.sh
  32. initrd ${kernel_url}tails-${os_arch}.iso /tails.iso
  33. boot
  34. :tails_exit
  35. clear menu
  36. exit 0