Yes, it is odd. I think the post-installation scripts will be run
because the depending linux-image-<release> package might not get
removed (and is present at the time anyway), thus initramfs-tools is
used to create /boot/initrd.img-<release> without the extra kernel
modules provided by linux-image-extra-<release>. I guess that exception
could be handled in /etc/kernel/postrm.d/initramfs-tools alternatively.
Nowadays also /etc/kernel/postinst.d/unattended-upgrades touches
/var/run/reboot-required so, that should be modified, as well (if post-
installation script will be run).
BTW running the post-installation scripts then may cause other problem,
too: Bug #1678187
** Also affects: unattended-upgrades (Ubuntu)
Importance: Undecided
Status: New
** Also affects: unattended-upgrades
Importance: Undecided
Status: New
--
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1458204
Title:
removing kernels should not require a restart afterward
To manage notifications about this bug go to:
https://bugs.launchpad.net/unattended-upgrades/+bug/1458204/+subscriptions
--
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs