creating livecd iso with livecd-tools fails with missing efi file "gcdx64.efi"

General support questions
Post Reply
bishwash1122
Posts: 3
Joined: 2022/10/03 16:35:39

creating livecd iso with livecd-tools fails with missing efi file "gcdx64.efi"

Post by bishwash1122 » 2022/10/03 16:48:20

I am trying to create a livecd iso for Centos 7.7 with only @core and @base packages so that it can be as small as possible. But, everytime I try to create the iso with livecd-creator -c "kickstart.cfg", I get "missing efi file(boot/efi/EFI/*/gcdx64.efi) error. How do I fix this? Really need some guidance here!
My kickstart configuration:

Code: Select all

autopart
          repo --name=official --baseurl=http://vault.centos.org/7.7.1908/os/x86_64/
          %packages
           @core
           @base
           #UEFU packages
           grub2
           grub2-efi
           efibootmgr
           shim-x64
Error:
missing efi file(boot/efi/EFI/*/gdcx64.efi)
Failed to copy EFI files, no EFI Support will be included
usage: mkefiboot [-h] [--debug] [-d] [-a] [-l -LABEL] .......
mkefiboot: error: /var/tmp/imgcreate-5CgAVU/iso-a4rX44/EFI/BOOT is not a directory
.....

I did see similar issue in another discussion but I did not understand what the solution was. Somebody did tell the reason but I want to know how to solve this issue to create that iso I need.
I would really appreciate the help!

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

Re: creating livecd iso with livecd-tools fails with missing efi file "gcdx64.efi"

Post by TrevorH » 2022/10/03 16:53:35

Why use an obsolete release? 7.9 is current and latest and last. Also a link to the "similar issue in another discussion"?
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

bishwash1122
Posts: 3
Joined: 2022/10/03 16:35:39

Re: creating livecd iso with livecd-tools fails with missing efi file "gcdx64.efi"

Post by bishwash1122 » 2022/10/03 18:04:06

Thanks for the reply Trevor. Even when I try 7.9, I am getting the same error. Not sure if I am forgetting to add any other UEFI packages. yes, I saw you replied to similar discussion regarding gcdx64.efi error in another discussion back in 2017 I believe but I was unable to figure out a solution from there.
Here is the link to that: viewtopic.php?t=64858

Thanks!

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

Re: creating livecd iso with livecd-tools fails with missing efi file "gcdx64.efi"

Post by TrevorH » 2022/10/03 18:29:41

Thanks for the link. You don't seem to have grub2-efi-x64-cdboot in your package list to install.
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

bishwash1122
Posts: 3
Joined: 2022/10/03 16:35:39

Re: creating livecd iso with livecd-tools fails with missing efi file "gcdx64.efi"

Post by bishwash1122 » 2022/10/03 19:28:19

That solved my problem! Thank you very much for the help!

Post Reply