Bug 6038 - urpm-package-cleanup removes all kernels except the running one
: urpm-package-cleanup removes all kernels except the running one
Status: CONFIRMED
Product: Desktop Bugs
Classification: ROSA Desktop
Component: Main Packages
: Fresh
: All Linux
: Low normal
: ---
Assigned To: Eugene Shatokhin
: ROSA Linux Bugs
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2015-08-12 00:22 MSD by Eugene Shatokhin
Modified: 2015-08-12 00:25 MSD (History)
1 user (show)

See Also:
RPM Package:
ISO-related:
Bad POT generating:
Upstream:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Eugene Shatokhin 2015-08-12 00:22:43 MSD
'urpm-package-cleanup --old-kernels' should remove all kernels except the given number of the latest ones (2 by default). It also must not remove the currently used kernel.

However, in a virtual machine with several kernels (3.14.x, 4.0.x, 4.1.x, the current one - 4.1.4-nrj-desktop), it removed all kernel packages except the currently used ones (4.1.4-...).

This should be fixed.

It also might be better to keep N latest kernels for each flavour (nrj-desktop, nrj-laptop, whatever ones are installed).

It could be convenient if N were configurable via some file (in /etc/urpmi ?) as well, not only with the command line options. This would make it easier to implement automatic removal of the older kernels later.
Comment 1 Eugene Shatokhin 2015-08-12 00:25:03 MSD
I will probably do it when I have time.