shredos.ipxe.j2 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. #!ipxe
  2. goto ${menu} ||
  3. :shredos
  4. set os_arch ${arch}
  5. iseq ${os_arch} x86_64 && set os_arch x86_64 ||
  6. iseq ${os_arch} i386 && set os_arch i686 ||
  7. menu ShredOS
  8. item --gap THIS SOFTWARE DESTROYS DATA
  9. item --gap EVERY BOOT OPTION IS DESTRUCTIVE
  10. item --gap DO NOT PROCEED IF YOU DO NOT KNOW WHAT THIS IS
  11. item shredos_exit ${space} Go Back
  12. item shredos_options ${space} Proceed I know what I am doing
  13. choose menu || goto shredos_exit
  14. goto ${menu}
  15. :shredos_options
  16. clear menu
  17. clear shredos_version
  18. {% for key, value in endpoints.items() | sort %}
  19. {% if value.os == "shredos" %}
  20. iseq ${os_arch} {{ value.arch }} && set kernel_url ${live_endpoint}{{ value.path }}shredos ||
  21. set shredos_version {{ value.version }}
  22. {% endif %}
  23. {% endfor %}
  24. menu ShredOS ${shredos_version}
  25. item --gap Choose a wipe method:
  26. item dodshort ${space} Wipe all disks with the short DoD 5220.22-M method
  27. item dod522022m ${space} Wipe all disks with the DoD 5220.22-M method
  28. item dod3pass ${space} Wipe all disks with the DoD 5220.22-M method (3 pass)
  29. item ops2 ${space} Wipe all disks with the RCMP TSSIT OPS-II method
  30. item gutmann ${space} Wipe all disks with the Gutmann method
  31. item prng ${space} Wipe all disks with the PRNG Stream method
  32. choose nuke_method || goto shredos_exit
  33. goto shredos_boot
  34. :shredos_boot
  35. imgfree
  36. kernel ${kernel_url} console=tty3 loglevel=3 nwipe_options="--method=${nuke_method}" ${cmdline}
  37. boot
  38. :shredos_exit
  39. clear menu
  40. exit 0