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

User avatar
TrevorH
Forum Moderator
Posts: 30344
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.
CentOS 6 died in November 2020 - migrate to a new version!
Info for USB installs on http://wiki.centos.org/HowTos/InstallFromUSBkey
CentOS 5 is dead, do not use it.
Full time Geek, part time moderator. 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
Forum Moderator
Posts: 30344
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/
CentOS 6 died in November 2020 - migrate to a new version!
Info for USB installs on http://wiki.centos.org/HowTos/InstallFromUSBkey
CentOS 5 is dead, do not use it.
Full time Geek, part time moderator. 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: 44
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: 48
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

Return to “CentOS 8 - General Support”