fedora.ipxe 1.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940
  1. #!ipxe
  2. isset ${server-ip} || set server-ip www.adriankoshka.xyz
  3. :start
  4. menu fedora
  5. item --gap -- ------------------------- Options ----------------------------------
  6. item fed-32 Fedora 32-bit
  7. item fed-64 Fedora 64-bit
  8. item --key c kickoff (C)ustom Kickstart script
  9. item --key g goback (G)o back to previous menu
  10. choose version && goto ${version} || goto start
  11. :kickoff
  12. cpuid --ext 29 && set arch x86_64 || set arch i386
  13. read edition
  14. echo -n Kickstart location :
  15. read script-location
  16. kernel http://mirror.cs.princeton.edu/pub/mirrors/fedora/linux/releases/26/Everything/${arch}/os/images/pxeboot/vmlinuz repo=http://mirror.cs.princeton.edu/pub/mirrors/fedora/linux/releases/26/EverythinG/${ARCH}/os/ initrd=initrd.img ip=dhcp ks=${script-location}
  17. initrd http://mirror.cs.princeton.edu/pub/mirrors/fedora/linux/releases/26/Everything/${arch}/os/images/pxeboot/initrd.img
  18. boot
  19. :fed-32
  20. kernel http://mirror.math.princeton.edu/pub/fedora-secondary/releases/26/Everything/i386/os/images/pxeboot/vmlinuz-PAE repo=http://mirror.math.princeton.edu/pub/fedora-secondary/releases/26/Everything/i386/os initrd=initrd-PAE.img ip=dhcp
  21. initrd http://mirror.math.princeton.edu/pub/fedora-secondary/releases/26/Everything/i386/os/images/pxeboot/initrd-PAE.img
  22. boot
  23. :fed-64
  24. kernel http://mirror.cs.princeton.edu/pub/mirrors/fedora/linux/releases/26/Everything/x86_64/os/images/pxeboot/vmlinuz repo=http://mirror.cs.princeton.edu/pub/mirrors/fedora/linux/releases/26/Everything/x86_64/os initrd=initrd.img ip=dhcp
  25. initrd http://mirror.cs.princeton.edu/pub/mirrors/fedora/linux/releases/26/Everything/x86_64/os/images/pxeboot/initrd.img
  26. boot
  27. :goback
  28. chain http://${server-ip}/boot/linux/fed.ipxe
  29. :goback-start
  30. goto start