Answer to myself with the solution for anybody coming here from a search engine.
The gen_grub_cfgstub is executed by Anaconda inside the target system chroot in /mnt/sysroot so make sure you have grub2-efi-x64 installed inside the target.
In my case it was adding grub2-efi-x64 to %packages in the Kickstart file. Thanks to Katerina that answered in [1].
Sorry for the noice :)
[1] https://github.com/rhinstaller/anaconda/pull/6544
Tobias Urdin - Binero Product Director Cloud Services
P: +46 10 410 26 64 E: tobias.urdin@binero.com W: binero.com
Smooth and secure technology across your business
On 10 Apr 2026, at 10:06, Tobias Urdin - Binero tobias.urdin@binero.com wrote:
Hello,
I’m having issues reporting a bug through Jira as linked in [1], seems like us we don’t have any access in the new RedHat Jira to create bug reports so I’m trying my luck here.
In the c9s 20260402.0 compose [2] the Anaconda installer fails because since change [3] it tries to execute gen_grub_cfgstub provided by grub2-efi-x64 [4] but that package is not installed.
This happens when trying to PXE boot an installation using the images/pxeboot/initrd.img and images/pxeboot/vmlinuz files.
I’m uncertain where the correct fix for this is, anybody with more insight here?
Best regards Tobias
[1] https://www.centos.org/bugs/ [2] https://composes.stream.centos.org/production/CentOS-Stream-9-20260402.0 [3] https://github.com/rhinstaller/anaconda/commit/23afdae50107f0a49b2e6ffe33521... [4] https://gitlab.com/redhat/centos-stream/rpms/grub2/-/commit/9d0f911af62979d8...