UEFI with kickstart

Issues related to applications and software problems and general support
Post Reply
moacir
Posts: 10
Joined: 2017/01/04 14:30:27

UEFI with kickstart

Post by moacir » 2020/04/05 20:13:55

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 3404 times

User avatar
TrevorH
Site Admin
Posts: 33202
Joined: 2009/09/24 10:40:56
Location: Brighton, UK

Re: UEFI with kickstart

Post by TrevorH » 2020/04/05 20:38:14

I've never done it but I do know that it needs to be a hybrid iso image.
The future appears to be RHEL or Debian. I think I'm going Debian.
Info for USB installs on http://wiki.centos.org/HowTos/InstallFromUSBkey
CentOS 5 and 6 are deadest, do not use them.
Use the FAQ Luke

moacir
Posts: 10
Joined: 2017/01/04 14:30:27

Re: UEFI with kickstart

Post by moacir » 2020/04/05 21:04:32

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...

moacir
Posts: 10
Joined: 2017/01/04 14:30:27

Re: UEFI with kickstart

Post by moacir » 2020/04/06 12:27:45

Anyone with RedHat support access could share here the contents of this page:
https://access.redhat.com/solutions/60959

Thanks.

User avatar
TrevorH
Site Admin
Posts: 33202
Joined: 2009/09/24 10:40:56
Location: Brighton, UK

Re: UEFI with kickstart

Post by TrevorH » 2020/04/06 12:32:36

For more information on the free Red Hat Developer subscription please see http://developers.redhat.com/blog/2016/ ... available/
The future appears to be RHEL or Debian. I think I'm going Debian.
Info for USB installs on http://wiki.centos.org/HowTos/InstallFromUSBkey
CentOS 5 and 6 are deadest, do not use them.
Use the FAQ Luke

moacir
Posts: 10
Joined: 2017/01/04 14:30:27

Re: UEFI with kickstart

Post by moacir » 2020/04/06 12:56:50

That was great! Thanks for sharing the info.
Cheers!

moacir
Posts: 10
Joined: 2017/01/04 14:30:27

Re: UEFI with kickstart

Post by moacir » 2020/04/06 13:23:20

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.

andrewm659
Posts: 45
Joined: 2014/10/24 16:20:13

Re: UEFI with kickstart

Post by andrewm659 » 2021/01/07 21:08:37

Did you ever figure this out?? I almost have it but still hit roadblocks.

Thraex
Posts: 51
Joined: 2019/05/14 19:50:28

Re: UEFI with kickstart

Post by Thraex » 2021/01/07 21:19:39

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 .

Post Reply