centos.ipxe 2.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566
  1. #!ipxe
  2. isset ${server-ip} || set server-ip www.adriankoshka.xyz
  3. :start
  4. menu centos
  5. item --gap -- ------------------------- CentOS 6 -------------------------------
  6. item c6_x86 CentOS 6 32-bit
  7. item c6_x86_64 CentOS 6 64-bit
  8. item --gap -- ------------------------- CentOS 7 -------------------------------
  9. item c7_x86_64 CentOS 7 64-bit
  10. item c7_x86 CentOS 7 32-bit
  11. item c7t_x86_64 Centos 7 64-bit text install
  12. item --gap -- ------------------------- Options --------------------------------
  13. item --key g goback (G)o back to previous menu
  14. item --key c ckick (C)ustom Kickstart script
  15. choose version && goto ${version} || goto start
  16. :ckick
  17. cpuid --ext 29 && set arch x86_64 || set arch i386
  18. echo -n 6 or 7:
  19. read release
  20. echo -n Kickstart location:
  21. read script-location
  22. iseq ${arch} x86_64 && set repo-url mirrors.gigenet.com/centos/${release}/os/${arch}/ || set repo-url mirror.centos.org/altarch/${release}/os/i386
  23. goto ckick-boot
  24. :ckick-boot
  25. kernel http://${repo-url}/images/pxeboot/vmlinuz repo=http://${repo-url} initrd=initrd.img ip=dhcp inst.ks=${script-location}
  26. initrd http://${repo-url}/images/pxeboot/initrd.img
  27. boot
  28. :c6_x86
  29. kernel http://mirrors.gigenet.com/centos/6/os/i386/images/pxeboot/vmlinuz repo=http://mirrors.gigenet.com/centos/6/os/i386/
  30. initrd http://mirrors.gigenet.com/centos/6/os/i386/images/pxeboot/initrd.img
  31. boot || imgfree
  32. shell
  33. :c6_x86_64
  34. kernel http://mirrors.gigenet.com/centos/6/os/x86_64/images/pxeboot/vmlinuz repo=http://mirrors.gigenet.com/centos/6/os/x86_64/
  35. initrd http://mirrors.gigenet.com/centos/6/os/x86_64/images/pxeboot/initrd.img
  36. boot || imgfree
  37. shell
  38. :c7_x86_64
  39. kernel http://mirrors.gigenet.com/centos/7/os/x86_64/images/pxeboot/vmlinuz inst.repo=http://mirrors.gigenet.com/centos/7/os/x86_64/ initrd=initrd.img
  40. initrd http://mirrors.gigenet.com/centos/7/os/x86_64/images/pxeboot/initrd.img
  41. boot || imgfree
  42. shell
  43. :c7t_x86_64
  44. kernel http://mirrors.gigenet.com/centos/7/os/x86_64/images/pxeboot/vmlinuz inst.repo=http://mirrors.gigenet.com/centos/7/os/x86_64/ inst.sshd inst.text initrd=initrd.img
  45. initrd http://mirrors.gigenet.com/centos/7/os/x86_64/images/pxeboot/initrd.img
  46. boot || imgfree
  47. shell
  48. :c7_x86
  49. kernel http://mirror.centos.org/altarch/7/os/i386/images/pxeboot/vmlinuz initrd=initrd.img inst.repo=http://mirror.centos.org/altarch/7/os/i386/
  50. initrd http://mirror.centos.org/altarch/7/os/i386/images/pxeboot/initrd.img
  51. boot || imgfree
  52. shell
  53. :goback
  54. chain http://${server-ip}/boot/linux/fed.ipxe