Skip to content
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

When using --installroot=, expired_repos.json is written inside the install root instead of outside of it #2011

Open
DaanDeMeyer opened this issue Nov 6, 2023 · 1 comment

Comments

@DaanDeMeyer
Copy link

When using https://github.com/systemd/mkosi/ to build images with dnf, expired_repos.json is written inside the install root instead of outside of it. The cache directory is configured to be outside of the install root. This can be reproduced by using dnf --installroot with a cache directory outside of the installroot.

I assume that rpm is chrooting into the installroot in the dnf process and that dnf tries to write expired_repos.json before the process exits the chroot.

@jan-kolarik
Copy link
Member

True, it can be simply reproduced, like:

dnf --installroot /home/user/installroot/ --setopt=cachedir=/home/user/cache repoquery --releasever 40

This results in storing the expired_repos.json file inside the /home/user/installroot/home/user/cache instead in the /home/user/cache, where the other files are cached.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: Backlog
Development

No branches or pull requests

2 participants