- rm /etc/dnf/protected.d/basesystem.conf
- dnf remove "grub*"
- remount /boot/efi as /efi and update /etc/fstab to match
- clean out the unneeded bits from /efi
- bootctl install
- mkdir -p /efi/$(cat /etc/machine-id) # it may be created by bootctl install
- kernel-install add 5.10.16-desktop-1.mga8 /boot/vmlinuz-5.10.16-desktop-1.mga8 # do this for all kernels
In order to resolve that I took these steps:
- Use rpm to forcibly remove bootloader-utils
- Install a dummy bootloader-utils package to satisfy dependencies
- Created a modified /sbin/installkernel and a dummy /sbin/kernel-remove-initrd
So, that being said, I have a couple of questions.
- Is there something else out there that does this already?
- Is there a better approach to this?