Closed bstaletic closed 10 months ago
Here's my new attempt at fixing this:
https://github.com/bstaletic/eclean-kernel/commit/7b5aeeaa5a22bc357a660eae7ea77f011592d111
If that is a valid approach, I can write a test and make another pull request.
Yes, the idea looks good. I'm going to have some minor comments but please open the PR. Thank you a lot!
Fixed in 58ee54e9988aba2a2b4a757faeae39f1d167b1e3.
This is a followup of #41 .
Briefly, with the following LILO configuration (all bootloaders are affected, but I only have LILO installed):
and these files in
/boot
:then running
eclean-kernel -a
, the expectation is that only the following files would be deleted (everything else is used by the bootloader):Instead, the regex substitution here fails and only the currently running kernel is preserved, which means at least one more kernel is deleted.