-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
General discussion #1
Comments
Ubuntu seems to keep some kernels from being autoremoved by default. From This script generates At least that is on Linux Mint / Ubuntu 20.04. However something changed here with newer Ubuntu versions. Idk. yet how this is supposed to work. Only the last installed kernel is saved on 22.04 but still autoremove seems to keep more than that. @mmikowski which version of *Ubuntu are you using + how many kernels do you have installed for testing? |
@Bleuzen @eeickmeyer spent the day testing. Thank you for the great notes above. We are running 20.04 and 22.04, although current development is on 20.04. We are using 2-4 kernels for testing (oem, hwe, earlier versions of these). Analysis of unattended-upgrades in 20.04
AssessmentOur findings show that even if kernel packages are marked auto, deficiencies in the We should file a bug with 22.04 to bump the /boot partition to 2.0GiB because the Ubuntu 20.04 and 22.04 Proposal for Focal (20.04)At present, most of the shortcomings above have been addressed (1, 2, 3) or can be easily address (4, 5) by our kernel-cleaner script. To deliver benefits to the user most quickly, we propose to update that tool and continue to use it to refine the logic. We have an good set of automated tests to ensure the logic works as expected. We can check this in here if you wish. We have already made enhancements for issues 2 and 3. Issue 4 is pretty easy to implement, and issue 5 may be better handled in the next proposal and is discussed below. Proposal for Jammy (22.04)
I hope that is helpful! |
Hi @Bleuzen! Have you had a chance to review the above? What do you think? Ultimately, for 22.04 I think unattended-upgrades should do the following:
There have been a couple advancements for 22.04 which should be useful for this effort:
|
@Bleuzen are you still interested in this? I can add the kernel cleaner script for collaboration here as well if you like. Please let me know! I think this is a very important project which I'd like to see adopted up-stream. Here is a DFMEA assessment which discusses how catastrophic this problem can be for even advanced users. |
Sure, just have limited time and energy currently. Also note that my situation / motivation for this may be a little different. I don't use unattended-upgrades or oem kernels and only care about 22.04 as I already upgraded our machines here.
Yes this would be a nice thing to have :)
Agree, things like this should work ootb. |
Hi @Bleuzen: Great, I'll add the script and the tests, probably tomorrow. 22.04 is a good target. With some luck, we see the package kit fix soon. Discover does not clean up any auto installed packages AFAIK. Unattended upgrades does, but it's logic appears a bit mysterious. If you are maintaining a number of machines, you might want to use the mark-auto script from above, unattended upgrades (default config) and kernel cleaner script until you are comfortable that unattended upgrades works well enough on its own. If you want to discuss that some time, let me know. Cheers, Mike |
@Bleuzen Sorry this took a while, but I've added the script and unit tests. I disentangled the code from the common libs we used to keep it as straight-forward as possible. We can bring this back with the GUI as we progress. One thing we'd really like to add is the ability for users to select the desired kernel flavors (e.g. oem, hwe, lowlatency) and then return only the last two versions of those. This should be fairly easy. |
No description provided.
The text was updated successfully, but these errors were encountered: