| Summary: | Would remove-old-kernel remove the only working kernel ? | ||
|---|---|---|---|
| Product: | Mageia | Reporter: | GG HH <boulshet> |
| Component: | RPM Packages | Assignee: | Barry Jackson <zen25000> |
| Status: | RESOLVED FIXED | QA Contact: | |
| Severity: | enhancement | ||
| Priority: | Normal | CC: | boulshet |
| Version: | Cauldron | ||
| Target Milestone: | --- | ||
| Hardware: | All | ||
| OS: | Linux | ||
| Whiteboard: | |||
| Source RPM: | remove-old-kernels-0.99.2-3.mga9.src.rpm | CVE: | |
| Status comment: | |||
| Attachments: |
Screen shot where a kernel would be removed if not running.
Screen shot in advanced mode |
||
|
Description
GG HH
2022-11-20 15:45:32 CET
GG HH
2022-11-20 15:45:43 CET
CC:
(none) =>
boulshet no, it has checks in place that prevents the running kernel from being removed. if the manpage states / implies something like that, it needs to be updated / clarified Assignee:
bugsquad =>
zen25000 if does not explicitely but does neither state that it would remove old kernels *but* the running one. So my assumption was it would remove it. It will never remove the running kernel. If the running kernel has been removed by some means since boot, (which is possible see: https://bugs.mageia.org/show_bug.cgi?id=31015) then it will abort with an error message and remove nothing. Check that you have the latest man page as due to a packaging error on my part the wrong (old) man page was included with 0.99.2.1. The latest package has the correct one although it is still being worked on and can still be improved or corrected. I have just inserted the following into the draft of the next release of the man page: "It will never remove the running kernel. If the running kernel has been accidentally removed by some utility since boot then it will report this and abort, removing nothing." So closing as fixed. Please feel free to re-open or report any other issues or concerns. Thanks for contributing! Resolution:
(none) =>
FIXED thanks a lot In doubt i was somewhat reluctant to use it. FYI, I currently only have 0.99.2 on the mirrors thanks ! Created attachment 13527 [details]
Screen shot where a kernel would be removed if not running.
Here is a screen shot of the situation that concerned you.
Here the running kernel is the earliest installed and also the 4th kernel, with the 'number to remove' set to the default of 3, so it would be removed if it was not running.
The -devel file in red is the 4th and oldest so it WILL be removed.
In 'advanced mode' it would not be removed because the matching kernel is also installed and not being removed on this occasion.
If you need to keep various kernels and the matching -devels installed then you can easily turn on advanced mode with 'rok -Q1' as root.
I hope that helps.
Created attachment 13528 [details]
Screen shot in advanced mode
This is the same machine in advanced mode, where nothing would be removed at all.
Column 3 shows the key to the reasons why all are being kept (except where it is simply the number of kernels setting).
K (for -devel packages) indicates that the kernel is still installed.
The key to column 3 is in the help -h or -? option.
In comment #6 I meant 'number to keep set to ....' Oops! |