Fixed that for now in unattended-upgrades and update-notifier by adding
case "$DPKG_MAINTSCRIPT_PACKAGE::$DPKG_MAINTSCRIPT_NAME" in linux-image-extra*::postrm) exit 0;; esac
We can then still decide if we want to run postinst.d scripts in linux-image-extra removals or not, but let's use bug 1501884 for that.
Fixed that for now in unattended-upgrades and update-notifier by adding
case "$DPKG_ MAINTSCRIPT_ PACKAGE: :$DPKG_ MAINTSCRIPT_ NAME" in image-extra* ::postrm)
linux-
exit 0;;
esac
We can then still decide if we want to run postinst.d scripts in linux-image-extra removals or not, but let's use bug 1501884 for that.