scientific.ipxe 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  1. #!ipxe
  2. # Scientific Linux Operating System
  3. # https://www.scientificlinux.org/
  4. goto ${menu} ||
  5. :scientific
  6. clear osversion
  7. set os Scientific
  8. menu ${os} ${arch}
  9. item 7.0 ${os} 7.0
  10. item 6.5 ${os} 6.5
  11. item other Choose other version [o]
  12. isset ${osversion} || choose osversion || goto linux_menu
  13. iseq ${osversion} other || goto scientific_skip_read_osversion
  14. echo ${cls}
  15. echo -n Enter version: ${} && read osversion
  16. :scientific_skip_read_osversion
  17. set dir linux/scientific/${osversion}/${arch}/os
  18. set repo http://ftp1.scientificlinux.org/${dir}
  19. goto boottype
  20. :boottype
  21. set ova ${os} ${osversion}
  22. menu ${os} ${arch} boot type
  23. item normal ${ova}
  24. item rescue ${ova} rescue
  25. item kickstart ${ova} specify kickstart url
  26. isset ${bt} || choose bt || goto scientific
  27. echo ${cls}
  28. iseq ${bt} rescue && goto rescue ||
  29. iseq ${bt} kickstart && goto kickstart ||
  30. goto bootos_images
  31. :rescue
  32. set params rescue ||
  33. goto bootos_images
  34. :kickstart
  35. echo -n Specify kickstart URL for ${os} ${osversion}: && read ksurl
  36. set params ks=${ksurl} ||
  37. goto bootos_images
  38. :bootos_images
  39. imgfree
  40. kernel http://ftp1.scientificlinux.org/${dir}/images/pxeboot/vmlinuz repo=${repo} ${params} ${netcfg}
  41. initrd http://ftp1.scientificlinux.org/${dir}/images/pxeboot/initrd.img
  42. boot
  43. goto linux_menu
  44. :linux_menu
  45. clear menu
  46. chain linux.ipxe
  47. exit 0