mirror of
https://github.com/algodelinux/purge-old-kernels.git
synced 2026-04-25 01:55:54 +03:00
[GH-ISSUE #2] the latest commit breaks hosts with custom kernels #3
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @aine-etke on GitHub (May 16, 2022).
Original GitHub issue: https://github.com/algodelinux/purge-old-kernels/issues/2
The
github.com/algodelinux/purge-old-kernels@ec84027befbreaks systems with-aws,-oracle, etc. kernels.Please, hide the
rmcommands under a cli arg (actual file modifications should be handled by corresponding tools, like apt-get and/or enabled manually by providing a special flag).@algodelinux commented on GitHub (May 18, 2022):
I will check the problem for you. I wrote this version to solve problems in our systems and we didn't have -aws or -oracle kernels. Removing files with rm was needed because there were lots of modules directories in /lib/modules and there was no package to uninstall to remove them. The problem could not be solved as you say.
@aine-etke commented on GitHub (May 18, 2022):
Here is what we found (mitigations section): https://gitlab.com/etke.cc/website/-/wikis/system/kernel
@algodelinux commented on GitHub (May 18, 2022):
Test new version.
@aine-etke commented on GitHub (May 18, 2022):
Thanks! Unfortunately, it doesn't address the main problem.
From the wiki page I linked:
So, the actual "fix" on the purge-old-kernels side is to provide a cli arg to enable/disable actual removal of the /lib/modules contents
@aine-etke commented on GitHub (May 18, 2022):
Just to clarify: I don't ask you to remove the
rmcommands, I ask you to add a cli arg, eg--rm-modules=1or--no-rm-modulesto enable/disable thermcommands@algodelinux commented on GitHub (May 18, 2022):
I understand.
@algodelinux commented on GitHub (May 19, 2022):
I note your request in my task list. By now, this change is not necessary for me and I have another priorities. But you can do a fork and make the changes yourself.
@aine-etke commented on GitHub (May 19, 2022):
Thank you!
Already did, but in my fork I completely removed the
rmcommands.Please, leave the issue open, hope you will have a chance to add requested changes some day
@aine-etke commented on GitHub (May 23, 2022):
Hi there,
I tried to test the latest commit you pushed, but
$APT_OPTSparsing fails:@algodelinux commented on GitHub (May 24, 2022):
I didn't include -y or -o options. You can include inside purge-old-kernels in APT_OPTS var.
@aine-etke commented on GitHub (May 24, 2022):
Thank you!