Page 1 of 1

UEFI with kickstart

Posted: 2020/04/05 20:13:55
by moacir
I am trying to create a custom CentOS 8 ISO that includes my kickstart and I got it working properly for BIOS. However, UEFI boot does not work and always load the UEFI shell (see picture below). The original CentOS 8 ISO works ok on my KVM machine but my custom one does not. To create the ISO I am using:

mkisofs \
-o /ISO/boot.iso \
-b isolinux/isolinux.bin \
-c isolinux/boot.cat -no-emul-boot -boot-load-size 4 -boot-info-table \
-eltorito-alt-boot \
-no-emul-boot \
-e images/efiboot.img \
-V "CentOS-8-1-1911-x86_64-dvd" \
-R -J -v -T .

I also tried to use xorriso with no success.

Any hint about what I am doing wrong?

Thanks.
UEFI.png
UEFI.png (17.79 KiB) Viewed 821 times

Re: UEFI with kickstart

Posted: 2020/04/05 20:38:14
by TrevorH
I've never done it but I do know that it needs to be a hybrid iso image.

Re: UEFI with kickstart

Posted: 2020/04/05 21:04:32
by moacir
I have also tried it... When I try to make it hybrid, I get:

isohybrid --uefi /ISO/boot.iso
isohybrid: Warning: more than 1024 cylinders: 7272
isohybrid: Not all BIOSes will be able to boot this device

Still does not work... The funny thing is that the original ISO works...

Re: UEFI with kickstart

Posted: 2020/04/06 12:27:45
by moacir
Anyone with RedHat support access could share here the contents of this page:
https://access.redhat.com/solutions/60959

Thanks.

Re: UEFI with kickstart

Posted: 2020/04/06 12:32:36
by TrevorH
For more information on the free Red Hat Developer subscription please see http://developers.redhat.com/blog/2016/ ... available/

Re: UEFI with kickstart

Posted: 2020/04/06 12:56:50
by moacir
That was great! Thanks for sharing the info.
Cheers!

Re: UEFI with kickstart

Posted: 2020/04/06 13:23:20
by moacir
I did the step by step procedure from Red Hat. Still does not work for UEFI.
Anyone that has solved this? If not, is it a Red Hat/CentOS 8 bug?

Thanks.

Re: UEFI with kickstart

Posted: 2021/01/07 21:08:37
by andrewm659
Did you ever figure this out?? I almost have it but still hit roadblocks.

Re: UEFI with kickstart

Posted: 2021/01/07 21:19:39
by Thraex
I did this using xorriso. In the kickstart, I had to include a %pre section that checks if the system is uefi and add a /boot/efi partition if it is.
The labelling is also very picky and it caused me a bit of a headache figuring out so make sure the version you're using is 8-1-1911.

%pre check is:

Code: Select all

if [ -d /sys/firmware/efi ]; then 
uefi partitions
else
bios partitions
fi
xorriso command I used:

Code: Select all

xorriso -as mkisofs -o /isos/centOS8.iso -V "CentOS-8-1-1911-x86_64-dvd" -c isolinux/boot.cat -b isolinux/isolinux.bin -no-emul-boot -boot-load-size 4 -boot-info-table -eltorito-alt-boot -e images/efiboot.img -no-emul-boot -R -J .