Skip to content

Comments

Fix grub2-mkconfig for RHEL 9.4+ and related distros#390

Merged
Dany9966 merged 1 commit intocloudbase:masterfrom
fabi200123:cor-592
Feb 25, 2026
Merged

Fix grub2-mkconfig for RHEL 9.4+ and related distros#390
Dany9966 merged 1 commit intocloudbase:masterfrom
fabi200123:cor-592

Conversation

@fabi200123
Copy link
Contributor

Fix grub2-mkconfig for RHEL 9.4+ and related distros

On RHEL 9.4+ and derivatives (Rocky, Alma, etc.), the EFI grub.cfg is now a wrapper that loads the main config from /boot/grub2/grub.cfg. grub2-mkconfig refuses to overwrite that wrapper and errors with "Please run grub2-mkconfig -o /boot/grub2/grub.cfg instead".

This change makes _get_grub2_cfg_location() prefer /boot/grub2/grub.cfg when it exists so grub2-mkconfig is given the correct output path during osmorphing.

@Dany9966 Dany9966 merged commit 16895aa into cloudbase:master Feb 25, 2026
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants