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

Cleaning the environment in distro-factory fails due to root permission requirement #745

Open
ashleshaAtrey opened this issue Mar 9, 2020 · 2 comments

Comments

@ashleshaAtrey
Copy link
Contributor

If we create LOCAL_REPO_DIR if LOCAL_RPM_DIR is empty, repodata is created with root permissions.
To clean the environment for the next build, devops requires root permissions which causes an issue.

@ashleshaAtrey ashleshaAtrey self-assigned this Mar 9, 2020
@ashleshaAtrey
Copy link
Contributor Author

ashleshaAtrey commented Mar 9, 2020

Currently due to new dnf requirements, every repo enabled in .yum-mix.conf needs to be a dnf repo dir.
If its just an dir without dnf repodata, dnf will error out.
To fix this issue, Compatibility with latest DNF #731 fix was added in mixer.

The fix creates a repodata for the local repo listed in builder.conf if repodata doesn't exists. This repodata is created during mixer build stage which are executed under root. Hence the repodata ends up being created with root permissions. Even if repo listed is empty, we end up creating a repodata for that repo.

@ashleshaAtrey
Copy link
Contributor Author

Solutions can be

  1. Dont create local-repo by default. Need to investigate what can break due to this change
  2. Add repo commands to enable and disable a repo

@ashleshaAtrey ashleshaAtrey changed the title Do not create LOCAL_REPO_DIR if LOCAL_RPM_DIR is empty Cleaning the environment in distro-factory fails due to root permission requirement Mar 9, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants