I'm sorry but disabling this part is not an option for me: We need to regenerate the UKI when parts other than the kernel (e.g. dracut, microcode, systemd-stub) get updated, to include potential bug or security fixes.
"sudo dracut --regenerate-all --uefi" works fine for me, for multiple kernels (including zen). If it doesn't work for you, please report a bug to the dracut packagers or to dracut upstream. But I'm sorry to say that there's little I can do in this hook about this problem.
I tend to believe that it's a setup issue on your system, though. Arch's kernel packages don't put their images on "/boot", so dracut shouldn't even look at /boot for kernel images on a system set up to build UKIs. I think if you can find out why you have a kernel image on /boot you're more than half way to identify the root cause.
Pinned Comments
swsnr commented on 2023-05-29 07:52 (UTC)
I no longer use dracut, and do not maintain this hook anymore.