1
0

scientific.ipxe 1.3 KB

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