almalinux.ipxe.j2 1.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172
  1. #!ipxe
  2. # AlmaLinux Operating System
  3. # https://almalinux.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. :almalinux
  8. clear osversion
  9. set os {{ releases.almalinux.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.almalinux.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 ${almalinux_base_dir}/${osversion}/BaseOS/${os_arch}/os
  20. set repo ${almalinux_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 almalinux
  30. echo ${cls}
  31. iseq ${bt} text && goto text ||
  32. iseq ${bt} rescue && goto rescue ||
  33. iseq ${bt} kickstart && goto kickstart ||
  34. iseq ${bt} kickstart_device && goto kickstart_device ||
  35. goto bootos_images
  36. :graphical
  37. set install_mode inst.graphical ||
  38. goto bootos_images
  39. :text
  40. set install_mode inst.text ||
  41. goto bootos_images
  42. :rescue
  43. set params inst.rescue ||
  44. goto bootos_images
  45. :kickstart
  46. echo -n Specify kickstart URL for ${os} ${osversion}: && read ks_url
  47. set params inst.ks=${ks_url} ||
  48. clear bt
  49. goto boottype
  50. :bootos_images
  51. imgfree
  52. kernel ${almalinux_mirror}/${dir}/images/pxeboot/vmlinuz inst.repo=${repo} ${install_mode} ${params} ${ipparam} {{ kernel_params }}
  53. initrd ${almalinux_mirror}/${dir}/images/pxeboot/initrd.img
  54. echo
  55. echo MD5sums:
  56. md5sum vmlinuz initrd.img
  57. boot
  58. goto linux_menu
  59. :linux_menu
  60. clear menu
  61. exit 0