APPLIED Re: [R][PATCH 0/2] Run scripts in /usr/share/kernel/*.d too

Timo Aaltonen timo.aaltonen at canonical.com
Thu Apr 2 06:21:53 UTC 2026


Emil Renner Berthing kirjoitti 1.4.2026 klo 14.44:
> In 26.06 Resolute packages like linux-base and system-boot have moved
> scripts that were previously installed in /etc/kernel/*.d to
> /usr/share/kernel/*.d, but linux-generic in Resolute only runs scripts
> /etc/kernel/*.d in the preinst and postrm hooks.
> 
> One example of this causing issues is that when using system-boot the
> postrm hooks are not run, and old kernel entries are not removed from
> the EFI partition when packages are removed.
> 
> Emil Renner Berthing (2):
>    UBUNTU: [Packaging] templates: Use consistent indentation
>    UBUNTU: [Packaging] templates: Run scripts in /usr/share/kernel/*.d
>      too
> 
>   debian/templates/extra.postinst.in   |  4 ++--
>   debian/templates/extra.postrm.in     |  4 ++--
>   debian/templates/headers.postinst.in |  4 ++--
>   debian/templates/image.postinst.in   |  8 ++++----
>   debian/templates/image.postrm.in     | 12 ++++++------
>   debian/templates/image.preinst.in    |  4 ++--
>   debian/templates/image.prerm.in      |  4 ++--
>   7 files changed, 20 insertions(+), 20 deletions(-)
> 

good catch.. applied, thanks!


-- 
Timo Aaltonen
Kernel Team
Canonical Ltd.



More information about the kernel-team mailing list