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

Emil Renner Berthing emil.renner.berthing at canonical.com
Wed Apr 1 11:44:10 UTC 2026


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(-)

-- 
2.53.0




More information about the kernel-team mailing list