-
Notifications
You must be signed in to change notification settings - Fork 93
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
Make cachedir relative to installroot #1148
Make cachedir relative to installroot #1148
Conversation
Like `logdir`, the `cachedir` and `system_cachedir` configuration options should be treated as relative to the installroot, unless specified is specified on the command line, e.g. via --setopt=cachedir=/path/to/cachedir. This is the behavior of the cachedir with DNF 4. Currently, the host cache directory is used by default, conflicting with what our docs say (man 7 dnf5-installroot): "cachedir, log files, releasever, and gpgkey are taken from or stored in the installroot." After this change, the default system_cachedir is $installroot/var/cache/libdnf5, which is consistent with the docs. For https://bugzilla.redhat.com/show_bug.cgi?id=2256945
1fb6350
to
834718c
Compare
Related: #754 |
Works fine. Tested with:
|
I mean, together with mock-core-configs from: rpm-software-management/mock#1282 |
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.
LGTM. Please add also CI tests or at least create and link an issue for that.
Alright, I created rpm-software-management/ci-dnf-stack#1436 since I think this should be merged quickly. |
58e0f11
Like
logdir
, thecachedir
configuration option should be treated as relative to the installroot, unless it is specified on the command line via--setopt=cachedir=/path/to/cachedir
. This is the behavior of the cachedir with DNF 4.Currently, the host cache directory is used by default, conflicting with what our docs say (man 7 dnf5-installroot):
After this change, the default cachedir is
$installroot/var/cache/libdnf5
, which is consistent with the docs.For https://bugzilla.redhat.com/show_bug.cgi?id=2256945.