ROSA Linux Bugzilla – Bug 6038
urpm-package-cleanup removes all kernels except the running one
Last modified: 2015-08-12 00:25:03 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.
I will probably do it when I have time.