A better (IMO) code to check this is:
case "$DPKG_MAINTSCRIPT_PACKAGE::$DPKG_MAINTSCRIPT_NAME" in linux-image-extra*::postrm) exit 0;; esac
I uploaded update-notifier and unattended-upgrades with that for bug 1458204.
A better (IMO) code to check this is:
case "$DPKG_ MAINTSCRIPT_ PACKAGE: :$DPKG_ MAINTSCRIPT_ NAME" in image-extra* ::postrm)
linux-
exit 0;;
esac
I uploaded update-notifier and unattended-upgrades with that for bug 1458204.