-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
Builds now require password-less sudo access #11292
Comments
Could you give more details on repro? What is the steps and what is observed? Thanks! |
During normal build ( Suggested remediation: using a small, temporary docker container to remove the files. For example: $(docker run --rm -v $(DOCKER_ROOT)\:/mount alpine sh -c 'rm -rf /mount/')
$(mkdir -p $(DOCKER_ROOT)) |
@jusherma what is your specific ask to the community? |
Well, I was hoping this regression would be fixed. Assuming passwordless sudo is available for all users who build SONIC is not a good assumption to make. I now have a fix for this, so I'll open a PR later today |
Thanks @jusherma |
#11111 assumes that all users building SONIC have password-less sudo access, which is not the case in our build environment. This is causing build problems for us.
A more portable solution would be to mount the
$(DOCKER_ROOT)
directory in a temporary docker container and delete it from there. That way, the only requirement is that the user has docker access (a pre-req for build anyway)Originally posted by @jusherma in #11111 (comment)
The text was updated successfully, but these errors were encountered: