swupd-client
swupd-client copied to clipboard
swupd doesn't clean up kernel bundles that are removed
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.
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?
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).
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.