#1125926 kernel-install preinst.d plugin should be installed under /usr/lib/ instead of /etc/ which is reserved for administrators

#1125926#5
Date:
2026-01-18 22:29:49 UTC
From:
To:
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.

#1125926#10
Date:
2026-01-24 13:53:32 UTC
From:
To:
Hi,

I think from my first reading, that you are mixing kernel-install(8)
and linux-run-hooks(1).

Thus, intel-microcode might but does not need to move the postinst.d
snipped to /usr/share/kernel/postinst.d instead of
/etc/kernel/postinst.d. Given the same version is backported back down
to bookworm one needs to consider as well the fact that the
/usr/share/kernel handling is starting from trixie on.

Regards,
Salvatore