-
Notifications
You must be signed in to change notification settings - Fork 198
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
origin: Switch baserefspec → refspec when de-layering #2882
Conversation
3f3348f
to
36ec429
Compare
5808f57
to
710a88e
Compare
OK lifting draft on this one, I think it's good to go. It's been more extensiveliy tested in #2743 and I think the last failure there is unrelated. |
The idea originally was that we'd switch to `baserefspec` when performing changes such that `ostree admin upgrade` would no longer work. But that has long since been buggy since the introduction of things like `rpm-ostree initramfs --enable` etc. The only goal of this PR is to avoid "leaking state" across origin switches, so that the work to map origin ⇔ treefile can also (correctly) be stateless.
710a88e
to
efd668a
Compare
@@ -714,6 +722,7 @@ rpmostree_origin_remove_packages (RpmOstreeOrigin *origin, | |||
update_keyfile_pkgs_from_cache (origin, "packages", "requested-local", | |||
origin->cached_local_packages, TRUE); | |||
|
|||
sync_baserefspec (origin); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Isn't this redundant with the calls we do in update_keyfile_pkgs_from_cache
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeah it is. Doesn't seem worth rerunning all the CI just for that, I'll fix it in #2743
The idea originally was that we'd switch to
baserefspec
whenperforming changes such that
ostree admin upgrade
would no longerwork. But that has long since been buggy since the introduction
of things like
rpm-ostree initramfs --enable
etc.The only goal of this PR is to avoid "leaking state" across
origin switches, so that the work to map origin ⇔ treefile
can also (correctly) be stateless.