[Bug 1462596] Re: apt-get autoremove takes quadratically long

Jarno Suni 1462596 at bugs.launchpad.net
Thu Sep 8 16:09:26 UTC 2016


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 Ubuntu
Foundations Bugs, which is subscribed to initramfs-tools 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



More information about the foundations-bugs mailing list