You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
composefs backend lacks garbage collection for /boot and sysroot #1808
Observed:
After running a few updates, /boot/EFI/Linux fills up and prevents bootc update from finishing, which leaves the system in a bad state.
/sysroot/composefs/images also doesn't appear to be pruned after updates.
Expected:
After an update, any un-reachable kernels and composefs images would be removed, freeing disk space. Un-reachable probably means that it's not listed in a boot loader entry somewhere, but there may be more nuance.
Thanks for making the composefs backend, we're having tons of fun with Debian :)
Reacted by Hec, Tulip Blossom and Kyle Gospodnetich
Would it make sense to first start GCing boot entries here in bootc and then hooking up the relevant areas in composefs to clean up the images where the boot entry no longer exists? Or is there another plan for GC in the composefs backend?
Currently bootc doesn't have automatic gc for composefs backend, but it does have a GC command which should clean up boot entries and dangling objects in the composefs repository. There'll be some substantial changes in the composefs repository when composefs/composefs-rs#185 lands
thanks for your response @Johan-Liebert1. I see bootc internals cfs gc which seems to work on the composefs repo, but what is the command to gc the boot entries? Is there anything that specifically cleans up \EFI\Linux?
@bketelsen Be aware that bootc internals cfs gc currently is broken, as I tested it it just marked everything for deletion. See composefs/composefs-rs#200 . The command @Johan-Liebert1 mentioned and you are asking for is delete-deployment, this command is hidden from the help text (probly cuz it's not too stable) but can be looked up in the source code
Also, it might take some time before the above-mentioned fix could be merged so if you want to try it out you can look at my branch which includes some yet-to-be-merged quality-of-life improvements to cfsctl as well.
If anyone is interested I also have a shell script that interfaces with bootc and my forked cfsctl to do the full GC. But the script is NOT thoroughly tested and should REALLY NOT be used on production systems.
I'm finding that bootc internals cfs gc still deletes everything and breaks the deployment on bootc 1.15.2. Is there any alternative recommended way to perform system maintenance?
Activity
cgwalters commentedon Nov 25, 2025
cc composefs/composefs-rs#196
gerblesh commentedon Dec 6, 2025
Would it make sense to first start GCing boot entries here in bootc and then hooking up the relevant areas in composefs to clean up the images where the boot entry no longer exists? Or is there another plan for GC in the composefs backend?
Johan-Liebert1 commentedon Dec 8, 2025
Currently bootc doesn't have automatic gc for composefs backend, but it does have a GC command which should clean up boot entries and dangling objects in the composefs repository. There'll be some substantial changes in the composefs repository when composefs/composefs-rs#185 lands
bketelsen commentedon Dec 8, 2025
thanks for your response @Johan-Liebert1. I see
bootc internals cfs gcwhich seems to work on the composefs repo, but what is the command to gc the boot entries? Is there anything that specifically cleans up \EFI\Linux?chaserhkj commentedon Jan 3, 2026
@bketelsen Be aware that
bootc internals cfs gccurrently is broken, as I tested it it just marked everything for deletion. See composefs/composefs-rs#200 . The command @Johan-Liebert1 mentioned and you are asking for isdelete-deployment, this command is hidden from the help text (probly cuz it's not too stable) but can be looked up in the source codechaserhkj commentedon Jan 5, 2026
Also, it might take some time before the above-mentioned fix could be merged so if you want to try it out you can look at my branch which includes some yet-to-be-merged quality-of-life improvements to cfsctl as well.
If anyone is interested I also have a shell script that interfaces with bootc and my forked cfsctl to do the full GC. But the script is NOT thoroughly tested and should REALLY NOT be used on production systems.
vaskozl commentedon May 3, 2026
I'm finding that
bootc internals cfs gcstill deletes everything and breaks the deployment onbootc 1.15.2. Is there any alternative recommended way to perform system maintenance?cgwalters commentedon May 4, 2026
Hi @vaskozl this one should be fixed by #2044 !
composefs-gc: Add --assert-no-op flag; use it in readonly smoke test
composefs-gc: Add --assert-no-op flag; use it in readonly smoke test
cgwalters commentedon May 4, 2026
This one was actually fixed by #2040 - gc happens automatically as you use
bootc upgrade/switchetc.However, #2044 will close a gap in that directly invoking the underlying
cfsctlGC would break things. But running thatinternalscommand isinternalsare subject to change at any time)composefs-gc: Add --assert-no-op flag; use it in readonly smoke test
composefs-gc: Add --assert-no-op flag; use it in readonly smoke test