Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Until now, we weren't pruning the pkgcache repo at all. I ran out of space in the root partition in my CAHC vagrant test box, so it's time to fix this. The basic algorithm is to walk over the full rpmdb contents of each root, generate a set of "currently referenced" cached refs, then delete any refs in the pkgcache repo which aren't included. Then, do a prune of the pkgcache repo. While we're here, factor out a `sysroot_upgrader_cleanup()` function which does all of the cleanup. The idea is at some point we need to introduce an `rpm-ostree cleanup` command or so which calls this, to handle the case where the system is interrupted post-deploy but pre-clean. Closes: #428 Closes: #437 Approved by: jlebon
- Loading branch information
1 parent
334cec5
commit 2bc8d7c
Showing
2 changed files
with
166 additions
and
17 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters