Is it possible to add EFI stub to vmlinuz? I've been using ipxe for network booting installation images, problem is that in EFI mode ipxe is only able to boot newer kernels with EFI stub enabled.
So if i try to boot RHEL 7, it boots fine in both EFI and legacy enviorment, but if i try the same with RHEL 6.7 it only boots in legacy. From what i've read on ipxe forum, the kernel needs to have EFI stub enabled. So is it possible to take the kernel (vmlinuz) that came with the distribution and add/enable EFI stub?