1
0

scientific.ipxe.j2 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  1. #!ipxe
  2. # Scientific Linux Operating System
  3. # https://www.scientificlinux.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. :scientific
  8. clear osversion
  9. set os Scientific Linux
  10. menu ${os} ${arch}
  11. {% for item in releases.scientific.versions %}
  12. item {{ item.code_name }} ${space} ${os} {{ item.name }}
  13. {% endfor %}
  14. item other Choose other version [o]
  15. isset ${osversion} || choose osversion || goto linux_menu
  16. iseq ${osversion} other || goto scientific_skip_read_osversion
  17. echo ${cls}
  18. echo -n Enter version: ${} && read osversion
  19. :scientific_skip_read_osversion
  20. set dir ${scientific_base_dir}/${osversion}/${arch}/os
  21. set repo ${scientific_mirror}/${dir}
  22. goto boottype
  23. :boottype
  24. set ova ${os} ${osversion}
  25. menu ${os} ${arch} boot type
  26. item normal ${ova}
  27. item rescue ${ova} rescue
  28. item kickstart ${ova} specify kickstart url
  29. isset ${bt} || choose bt || goto scientific
  30. echo ${cls}
  31. iseq ${bt} rescue && goto rescue ||
  32. iseq ${bt} kickstart && goto kickstart ||
  33. goto bootos_images
  34. :rescue
  35. set params inst.rescue ||
  36. goto bootos_images
  37. :kickstart
  38. echo -n Specify kickstart URL for ${os} ${osversion}: && read ksurl
  39. set params ks=${ksurl} ||
  40. goto bootos_images
  41. :bootos_images
  42. imgfree
  43. kernel ${scientific_mirror}/${dir}/images/pxeboot/vmlinuz repo=${repo} ${params} ${ipparam} {{ kernel_params }}
  44. initrd ${scientific_mirror}/${dir}/images/pxeboot/initrd.img
  45. boot
  46. goto linux_menu
  47. :linux_menu
  48. clear menu
  49. exit 0