scientific.ipxe 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  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. item 7.7 ${os} 7.7
  12. item 7.6 ${os} 7.6
  13. item 6.10 ${os} 6.10
  14. item 6.9 ${os} 6.9
  15. item other Choose other version [o]
  16. isset ${osversion} || choose osversion || goto linux_menu
  17. iseq ${osversion} other || goto scientific_skip_read_osversion
  18. echo ${cls}
  19. echo -n Enter version: ${} && read osversion
  20. :scientific_skip_read_osversion
  21. set dir linux/scientific/${osversion}/${arch}/os
  22. set repo http://ftp1.scientificlinux.org/${dir}
  23. goto boottype
  24. :boottype
  25. set ova ${os} ${osversion}
  26. menu ${os} ${arch} boot type
  27. item normal ${ova}
  28. item rescue ${ova} rescue
  29. item kickstart ${ova} specify kickstart url
  30. isset ${bt} || choose bt || goto scientific
  31. echo ${cls}
  32. iseq ${bt} rescue && goto rescue ||
  33. iseq ${bt} kickstart && goto kickstart ||
  34. goto bootos_images
  35. :rescue
  36. set params rescue ||
  37. goto bootos_images
  38. :kickstart
  39. echo -n Specify kickstart URL for ${os} ${osversion}: && read ksurl
  40. set params ks=${ksurl} ||
  41. goto bootos_images
  42. :bootos_images
  43. imgfree
  44. kernel http://ftp1.scientificlinux.org/${dir}/images/pxeboot/vmlinuz repo=${repo} ${params} ${console} ${ipparam}
  45. initrd http://ftp1.scientificlinux.org/${dir}/images/pxeboot/initrd.img
  46. boot
  47. goto linux_menu
  48. :linux_menu
  49. clear menu
  50. exit 0