clr-boot-manager icon indicating copy to clipboard operation
clr-boot-manager copied to clipboard

clr-boot-manager doesn't remove old Clear kernels when booted in a custom kernel

Open cmarcelo opened this issue 5 years ago • 8 comments

When clr-boot-manager update is called (manually or as part of swupd update) while the machine is running a custom kernel (not the ones provided by Clear), it seems to exit before it can clear up old kernels. Would be nice if it still could remove older kernels.

By default Clear keeps the running and the latest. Perhaps in this case that the running kernel is not from Clear, it could keep the two latest ones provided by Clear.

Note: I'm considering cbm will never remove a custom kernel -- which I think is the correct behavior.

cmarcelo avatar Jan 14 '20 17:01 cmarcelo

@bryteise @dorileo

cmarcelo avatar Jan 14 '20 17:01 cmarcelo

Ideally we would want to keep the last known booting kernel (of each type, this can quickly eat up a fair amount of space in the EFI partition as a warning to maybe not keep a ton of kernel types installed).

bryteise avatar Jan 14 '20 17:01 bryteise

In my case, I might stay a few updates without booting a Clear kernel. When I do, it does make sense to me to also have the "latest from Clear" which isn't necessarily the "last known booting".

cmarcelo avatar Jan 14 '20 17:01 cmarcelo

Ah sorry I wasn't clear at all X(. We always keep the latest kernel but usually that is the same as the last known good kernel. In this case there will likely be two different kernels which is why I commented about the EFI space.

bryteise avatar Jan 14 '20 18:01 bryteise

https://github.com/clearlinux/clr-boot-manager/issues/194 is also a related issue on the fact that you cannot even install another kernel when running a custom kernel.

seanvk avatar Jan 14 '20 19:01 seanvk

transferred the issue - highly specific to CBM.

ahkok avatar Jan 14 '20 21:01 ahkok

Thank you @cmarcelo cbm shouldn't fail in that case, I'll take a look at that. Thanks.

dorileo avatar Jan 22 '20 18:01 dorileo

I have the same problem. I delete old kernels manually when filling the /boot partition

tuzhms avatar May 24 '21 16:05 tuzhms