swupd-client icon indicating copy to clipboard operation
swupd-client copied to clipboard

swupd doesn't clean up kernel bundles that are removed

Open bryteise opened this issue 5 years ago • 3 comments

Today if someone on Clear Linux install kernel-native and kernel-lts bundles on their system and then decides to remove kernel-lts, contents of the kernel-lts bundle are left behind. This prevents clr-boot-manager from knowing the content should be deleted.

A mechanism from swupd-client to notify clr-boot-manager that it needs to remove content is required.

bryteise avatar Oct 31 '18 20:10 bryteise

A mechanism from swupd-client to notify clr-boot-manager that it needs to remove content is required.

Can't clr-boot-manager check the bundles that are installed?

otaviobp avatar Oct 31 '18 20:10 otaviobp

I'm not in favor of teaching clr-boot-manager Clear Linux bundle file locations as that seems a bit tightly bound (it already exists on distros aside from Clear Linux).

bryteise avatar Oct 31 '18 20:10 bryteise

Adding a kernel-remove style function for clr-boot-manager that swupd-client calls is probably a little better here. That call would need to be checked by swupd-client since it would tell users things like the bundle is currently in use types of information.

bryteise avatar Oct 31 '18 20:10 bryteise