fedora.ipxe.j2 2.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485
  1. #!ipxe
  2. # Fedora Operating System
  3. # https://getfedora.org/
  4. isset ${dhcp-server} && set ipparam ip=dhcp || set ipparam ip=${ip}::${gateway}:${netmask}:::none nameserver=${dns}
  5. set ipparam BOOTIF=${netX/mac} ${ipparam}
  6. goto ${menu} ||
  7. :fedora
  8. clear osversion
  9. clear sku_type
  10. clear ova
  11. set os {{ releases.fedora.name }}
  12. set os_arch ${arch}
  13. iseq ${os_arch} x86_64 && set os_arch x86_64 ||
  14. iseq ${os_arch} arm64 && set os_arch aarch64 ||
  15. menu ${os} - ${os_arch}
  16. item --gap Latest Releases
  17. {% for item in releases.fedora.versions %}
  18. item {{ item.code_name }} ${space} ${os} {{ item.name }}
  19. {% endfor %}
  20. iseq ${os_arch} x86_64 && item rawhide ${space} ${os} rawhide ||
  21. isset ${osversion} || choose osversion || goto linux_menu
  22. set ova ${os} ${osversion}
  23. goto product_sku
  24. :product_sku
  25. menu ${os} ${os_arch} sku type
  26. item Everything ${ova} Everything
  27. item Server ${ova} Server
  28. item Kinoite ${ova} Kinoite
  29. item Silverblue ${ova} Silverblue
  30. item Sericea ${ova} Sericea
  31. isset ${sku_type} || choose sku_type || goto fedora
  32. set dir ${fedora_base_dir}/releases/${osversion}/${sku_type}/${os_arch}/os
  33. iseq ${osversion} rawhide && set dir ${fedora_base_dir}/development/${osversion}/${sku_type}/${os_arch}/os ||
  34. set ova ${ova} ${sku_type}
  35. echo ${cls}
  36. goto boottype
  37. :boottype
  38. menu ${os} ${os_arch} boot type
  39. item graphical ${ova} graphical install
  40. item text ${ova} text install
  41. item rescue ${ova} rescue
  42. item kickstart ${ova} set kickstart url [ ${ks_url} ]
  43. isset ${bt} || choose bt || goto fedora
  44. echo ${cls}
  45. iseq ${bt} normal && goto boot ||
  46. goto ${bt}
  47. :graphical
  48. set install_mode inst.graphical ||
  49. goto bootos_images
  50. :text
  51. set install_mode inst.text ||
  52. goto bootos_images
  53. :rescue
  54. set params inst.rescue ||
  55. goto bootos_images
  56. :kickstart
  57. echo -n Specify kickstart URL for ${os} ${osversion}: && read ks_url
  58. set params inst.ks=${ks_url} ||
  59. clear bt
  60. goto boottype
  61. :bootos_images
  62. imgfree
  63. kernel ${fedora_mirror}/${dir}/images/pxeboot/vmlinuz inst.repo=${fedora_mirror}/${dir} ${install_mode} ${params} ${ipparam} {{ kernel_params }}
  64. initrd ${fedora_mirror}/${dir}/images/pxeboot/initrd.img
  65. echo
  66. echo MD5sums:
  67. md5sum vmlinuz initrd.img
  68. boot
  69. goto linux_menu
  70. :linux_menu
  71. clear menu
  72. exit 0