1
0

scientific.ipxe 1.4 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
  8. iseq ${manufacturer} Xen && set netcfg ip=${netX/ip} netmask=${netX/netmask} gateway=${netX/gateway} dns=${dns} ksdevice=eth0 ||
  9. menu ${os} ${arch}
  10. item 7.0 ${os} 7.0
  11. item 6.5 ${os} 6.5
  12. item other Choose other version [o]
  13. isset ${osversion} || choose osversion || goto linux_menu
  14. iseq ${osversion} other || goto scientific_skip_read_osversion
  15. echo ${cls}
  16. echo -n Enter version: ${} && read osversion
  17. :scientific_skip_read_osversion
  18. set dir linux/scientific/${osversion}/${arch}/os
  19. set repo http://ftp1.scientificlinux.org/${dir}
  20. goto boottype
  21. :boottype
  22. set ova ${os} ${osversion}
  23. menu ${os} ${arch} boot type
  24. item normal ${ova}
  25. item rescue ${ova} rescue
  26. item kickstart ${ova} specify kickstart url
  27. isset ${bt} || choose bt || goto scientific
  28. echo ${cls}
  29. iseq ${bt} rescue && goto rescue ||
  30. iseq ${bt} kickstart && goto kickstart ||
  31. goto bootos_images
  32. :rescue
  33. set params rescue ||
  34. goto bootos_images
  35. :kickstart
  36. echo -n Specify kickstart URL for ${os} ${osversion}: && read ksurl
  37. set params ks=${ksurl} ||
  38. goto bootos_images
  39. :bootos_images
  40. imgfree
  41. kernel http://ftp1.scientificlinux.org/${dir}/images/pxeboot/vmlinuz repo=${repo} ${params} ${netcfg}
  42. initrd http://ftp1.scientificlinux.org/${dir}/images/pxeboot/initrd.img
  43. boot
  44. goto linux_menu
  45. :linux_menu
  46. clear menu
  47. chain linux.ipxe
  48. exit 0