[Bug 1603751] Re: apt-get autoremove takes forever

Launchpad Bug Tracker 1603751 at bugs.launchpad.net
Sun Mar 22 16:02:29 UTC 2020


Status changed to 'Confirmed' because the bug affects multiple users.

** Changed in: grub2 (Ubuntu)
       Status: New => Confirmed

-- 
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to grub2 in Ubuntu.
https://bugs.launchpad.net/bugs/1603751

Title:
   apt-get autoremove takes forever

Status in grub2 package in Ubuntu:
  Confirmed

Bug description:
  While trying to clear out old kernels in a UEFI system (8 or 9 surplus
  generations), I noticed that the apt-get autoremove command issues an
  update-grub command internally and rebuilds after >>EVERY<< generation
  deletion. This results in multiple rebuilds of the Grub
  configurations, including even those older generations that are
  subsequently going to be removed in a later pass.

  While appreciating that there is a necessity for fallback at all
  times, is there not a more elegant and time saving way of doing this,
  maybe adding a parameter as eg. "apt-get autoremove min_generations=x"
  where there is specified parameter for minimum number of old kernels
  are kept (suggested minimum default current +2 back levels) and the
  rest deleted? This could enable a one pass autoremove, useful when new
  kernel versions are coming out every 5 minutes.

  Grub2 version 2.02~beta2-36

  david at david-linux:~$ lsb_release -rd
  Description:	Ubuntu 16.04 LTS
  Release:	16.04

  david at david-linux:~$ uname -a
  Linux david-linux 4.5.0-040500-generic #201603140130 SMP Mon Mar 14 05:32:22 UTC 2016 x86_64 x86_64 x86_64 GNU/Linux

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/grub2/+bug/1603751/+subscriptions



More information about the foundations-bugs mailing list