This is intentional. This only occurs with the -extras package, and is correct for that, as when you remove it you have not removed the underlying kernel but you are essentially in the same position you would have been having just installed the base package. This means you need to run the post installation handling for the now "skinny" kernel on disk.
Yes, this is unfortuanate when you are next going to remove that kernel too. This would be fixed (I beleive) by correctly using triggers for these rebuilds. But right now there are no triggers for those. -- You received this bug notification because you are a member of Kernel Packages, which is subscribed to linux in Ubuntu. https://bugs.launchpad.net/bugs/1475662 Title: Kernel postrm calls /etc/kernel/postinst.d/* Status in linux package in Ubuntu: Invalid Bug description: Looking at linux-image-extra-3.19.0-18-generic here, but I expect this to be pretty pervasive. This is its postrm: #!/bin/sh set -e case "$0::$1" in *.postinst::configure|*.postrm::remove) depmod -a -F /boot/System.map-3.19.0-18-generic 3.19.0-18-generic || true for dir in "/etc/kernel/postinst.d" "/etc/kernel/postinst.d/3.19.0-18-generic" do if [ -d "$dir" ]; then run-parts --verbose --exit-on-error --arg="3.19.0-18-generic" --arg="/boot/vmlinuz-3.19.0-18-generic" "$dir" fi done ;; esac As you can see it executes /etc/kernel/postinst.d/* instead of /etc/kernel/postrm.d/* even if it's called as a postrm script. Why? The problem for us is that this re-executes dkms's autoinstaller, which recompiles certain modules even if the kernel is being removed. But I find this behavior pretty surprising regardless of this. To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1475662/+subscriptions -- Mailing list: https://launchpad.net/~kernel-packages Post to : [email protected] Unsubscribe : https://launchpad.net/~kernel-packages More help : https://help.launchpad.net/ListHelp

