JustPaste.it

cat /var/lib/tftpboot/pxelinux.cfg/01-f4-03-43-d4-e0-70
#!ipxe

iseq ${platform} efi && goto efi_boot || goto legacy_boot

:legacy_boot
echo Booting with Legacy Bios iPxe
kernel -n img http://10.118.192.250:80/cobbler/images/CentOS-7-1611-x86_64/vmlinuz  ksdevice=bootif lang=  bootdev=eno5 text ip=eno5:dhcp kssendmac  ks=http://10.118.192.250/cblr/svc/op/ks/system/servername-2163
initrd http://10.118.192.250:80/cobbler/images/CentOS-7-1611-x86_64/initrd.img
boot img

# as ipexe doesn't work well with different version of centos
# let's chain load it back to grub2 and deal with it from there.
:efi_boot
echo iPxe is Chainloading to grub2...
chain /grub/grub2-x86_64.efi
boot

 

 

 


cat /var/lib/tftpboot/grub/01-F4-03-43-D4-E0-70
  # generate linux ipxe here
  default=0
  timeout=0

  # for grub 0.97
  title servername-2163
      root (nd)
      kernel /images/CentOS-7-1611-x86_64/vmlinuz  ksdevice=bootif lang=  bootdev=eno5 text ip=eno5:dhcp kssendmac  ks=http://10.118.192.250/cblr/svc/op/ks/system/servername-2163
      initrd /images/CentOS-7-1611-x86_64/initrd.img

  # for grub 2.02
  menuentry "grub2-servername-2163"{
      linuxefi /images/CentOS-7-1611-x86_64/vmlinuz  ksdevice=bootif lang=  bootdev=eno5 text ip=eno5:dhcp kssendmac  ks=http://10.118.192.250/cblr/svc/op/ks/system/servername-2163
      install=/cblr/links/CentOS-7-1611-x86_64
      initrdefi /images/CentOS-7-1611-x86_64/initrd.img
   }