I'm Cc'ing the kernel team so that maybe they can correct me if I'm wrong 🙂
I'm getting into the innards of kernel-install, dracut, systemd-boot, UKIs, and everything else that makes systems boot and it's been very confusing. I think that's because a couple packages are installing stuff in the wrong place and making it hard for me to override things with drop-ins. The kernel-install(8) manual page, in the first major paragraph, says
Right now, intel-microcode appears to install /etc/kernel/preinst.d/intel-microcode, but I think this should be /usr/lib/kernel/preinst.d/intel-microcode, because the reasons above say /etc/kernel/ should be for administrator overrides. It should be double-checked that kernel-install does, in fact, use /usr/lib/kernel/preinst.d/. A couple other packages have this issue too, so after research is done, it would be nice to ask the Lintian folks to add a warning and/or amend the manual page of systemd upstream.