To accommodate my custom secure boot keyring, I generate/install UKIs with the following /etc/kernel/install.conf
layout=uki
uki_generator=ukify
initrd_generator=dracut
For some time now, the UKIs are not cleaned up anymore and I need to clean them up manually (mostly when I get an update error because ESP is full).
$ rpm -qa | grep kernel-core
kernel-core-6.19.8-200.fc43.x86_64
kernel-core-6.19.14-200.fc43.x86_64
$ ll /boot/efi/EFI/Linux
total 223M
-rwx------. 1 root root 45M Feb 22 15:37 993c50bdbcda40e99cb20463ec6ff289-6.18.12-200.fc43.x86_64.efi*
-rwx------. 1 root root 45M Mar 1 23:00 993c50bdbcda40e99cb20463ec6ff289-6.18.13-200.fc43.x86_64.efi*
-rwx------. 1 root root 45M Feb 3 17:55 993c50bdbcda40e99cb20463ec6ff289-6.18.7-200.fc43.x86_64.efi*
-rwx------. 1 root root 45M May 1 14:04 993c50bdbcda40e99cb20463ec6ff289-6.19.14-200.fc43.x86_64.efi*
-rwx------. 1 root root 45M Mar 23 08:45 993c50bdbcda40e99cb20463ec6ff289-6.19.8-200.fc43.x86_64.efi*
I have dug a bit through the kernel spec files and It forces the --entry-type type1 argument to the kernel-install remove in it’s pre-uninstall hook for non-uki packages.
What would be the best way to make my use-case work ? Does this merit a proper bugzilla issue ?