-
Notifications
You must be signed in to change notification settings - Fork 299
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
pruning tries to traverse into parent repos #467
Comments
There are a few things related here. One is https://bugzilla.gnome.org/show_bug.cgi?id=764735
Which doesn't, and AFAICS has never traversed into parent repos. Doing some archaeology, I found: Hmm, though the pull code does consult parent repos for objects. So flatpak's use of parent repos here makes sense. But rpm-ostree's importer is using the libarchive->commit path, which doesn't. |
Some design discussion here:coreos/rpm-ostree#107 (comment) However, rereading that, I still don't quite understand why we ended up adding the |
Just to summarize what we discussed on IRC about this. There are two distinct issues here. The pkgcache repo was made separate of the base repo so that it wouldn't be affected by ostree's pruning. Its Once #262 is fixed, we can store it in the same repo and as a plus gain proper deduping. |
When doing a prune, we should not try to delete objects in parent repos, since it'll fail. There is a bigger discussion about the semantics of `parent=` to be had, but this will fix trying to use `ostree prune --repo=/ostree/repo/extensions/rpmostree/pkgcache`. Closes: ostreedev#467
Addressed by #471 |
Trying to prune my rpm-ostree pkg cache repo doesn't work because we try to delete objects that came from the parent (but fail because we try to
unlinkat()
in the pkgcache repo).The text was updated successfully, but these errors were encountered: