pub(crate) async fn composefs_gc(
storage: &Storage,
booted_cfs: &BootedComposefs,
) -> Result<()>Expand description
- List all bootloader entries
- List all EROFS images
- List all state directories
- List staged depl if any
If bootloader entry B1 doesn’t exist, but EROFS image B1 does exist, then delete the image and perform GC
Similarly if EROFS image B1 doesn’t exist, but state dir does, then delete the state dir and perform GC