Oh, you can do something now: you can set update-grub executable (found by command `which update-grub`) not executable by `sudo chmod -x` temporarily, and then remove the kernels, and then restore the state of the file by `sudo chmod +x` and finally run `sudo update-grub` manually. This is because /etc/kernel/postinst.d/zz-update-grub exits, if the executable is not found (at least in 14.04 and 16.04).
-- 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/1462596 Title: apt-get autoremove takes quadratically long Status in initramfs-tools package in Ubuntu: Confirmed Status in linux package in Ubuntu: Confirmed Bug description: apt-get autoremove regenerates the initrd after removing each kernel. Since you generally call this command only when your boot volume is full of old kernels, it seems sub-optimal to regenerate the initrd eight times when removing eight kernels. Could something be done with triggers to do a single regeneration of the initrd at the end? This is in 14.04 To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/initramfs-tools/+bug/1462596/+subscriptions -- Mailing list: https://launchpad.net/~kernel-packages Post to : kernel-packages@lists.launchpad.net Unsubscribe : https://launchpad.net/~kernel-packages More help : https://help.launchpad.net/ListHelp