-
Notifications
You must be signed in to change notification settings - Fork 197
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
Pr/config ctx from depl #1038
Pr/config ctx from depl #1038
Conversation
Add a function in the core that knows how to take a deployment and point its passwd dir and libdnf's repos dir to it. We call it the "configuration deployment", because those are configuration files which should be inherited from the config merge, not the origin merge. Prep for `makecache`.
Let callers pass `NULL` for the `@spec` argument. This essentially means that they're not interested in actually doing any installation/commit operations, but just the semantics that the core uses when setting up libdnf wrt e.g. install and source root and enabled repos = required, etc... Prep for `makecache`.
|
||
/* point libhif to the yum.repos.d and os-release of the merge deployment */ | ||
dnf_context_set_repo_dir (hifctx, reposdir); | ||
dnf_context_set_source_root (hifctx, tmprootfs); |
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.
We're no longer calling _set_source_root()
...is that intentional?
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 basically got overridden anyway by the set_source_root()
at rpmostree_context_setup
time. I think this precedes that functionality being added directly in rpmostree_context_setup
.
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.
I don't mind splitting this as a separate commit if you'd prefer!
⚡ Test exempted: pull fully rebased and already tested. |
Let callers pass `NULL` for the `@spec` argument. This essentially means that they're not interested in actually doing any installation/commit operations, but just the semantics that the core uses when setting up libdnf wrt e.g. install and source root and enabled repos = required, etc... Prep for `makecache`. Closes: #1038 Approved by: cgwalters
Minor prep for #1035.