1
0

rockylinux.ipxe.j2 1.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071
  1. #!ipxe
  2. # Rocky Linux
  3. # https://rockylinux.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. :rockylinux
  8. clear osversion
  9. set os {{ releases.rockylinux.name }}
  10. set os_arch ${arch}
  11. iseq ${os_arch} x86_64 && set os_arch x86_64 ||
  12. iseq ${os_arch} arm64 && set os_arch aarch64 ||
  13. menu ${os} - ${os_arch}
  14. {% for item in releases.rockylinux.versions %}
  15. item {{ item.code_name }} ${space} ${os} {{ item.name }}
  16. {% endfor %}
  17. isset ${osversion} || choose osversion || goto linux_menu
  18. echo ${cls}
  19. set dir ${rockylinux_base_dir}/${osversion}/BaseOS/${os_arch}/os
  20. set repo ${rockylinux_mirror}/${dir}
  21. goto boottype
  22. :boottype
  23. set ova ${os} ${osversion}
  24. menu ${os} ${os_arch} boot type
  25. item graphical ${ova} graphical installer
  26. item text ${ova} text based installer
  27. item rescue ${ova} rescue
  28. item kickstart ${ova} set kickstart url [ ${ks_url} ]
  29. isset ${bt} || choose bt || goto rockylinux
  30. echo ${cls}
  31. iseq ${bt} text && goto text ||
  32. iseq ${bt} rescue && goto rescue ||
  33. iseq ${bt} kickstart && goto kickstart ||
  34. goto bootos_images
  35. :graphical
  36. set install_mode inst.graphical ||
  37. goto bootos_images
  38. :text
  39. set install_mode inst.text ||
  40. goto bootos_images
  41. :rescue
  42. set params inst.rescue ||
  43. goto bootos_images
  44. :kickstart
  45. echo -n Specify kickstart URL for ${os} ${osversion}: && read ks_url
  46. set params inst.ks=${ks_url} ||
  47. clear bt
  48. goto boottype
  49. :bootos_images
  50. imgfree
  51. kernel ${rockylinux_mirror}/${dir}/images/pxeboot/vmlinuz inst.repo=${repo} ${install_mode} ${params} ${ipparam} {{ kernel_params }}
  52. initrd ${rockylinux_mirror}/${dir}/images/pxeboot/initrd.img
  53. echo
  54. echo MD5sums:
  55. md5sum vmlinuz initrd.img
  56. boot
  57. goto linux_menu
  58. :linux_menu
  59. clear menu
  60. exit 0