apt-get autoremove takes quadratically long
Bug #1462596 reported by
Tom Womack
This bug affects 2 people
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
initramfs-tools (Ubuntu) |
Confirmed
|
Undecided
|
Unassigned | ||
linux (Ubuntu) |
Confirmed
|
Undecided
|
Unassigned |
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
affects: | apt (Ubuntu) → linux (Ubuntu) |
Changed in linux (Ubuntu): | |
status: | New → Confirmed |
Changed in initramfs-tools (Ubuntu): | |
status: | New → Confirmed |
To post a comment you must log in.
I think this script runs update-grub after every remove of kernel: /etc/kernel/ postinst. d/zz-update- grub. Would it be possible to use an environment variable that makes it possible to skip that post-installation script, and run update-grub manually after last removal, if wanted?