-
Notifications
You must be signed in to change notification settings - Fork 219
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
cmd/initContainer: Avoid RPM failures due to unexpected file owners #640
cmd/initContainer: Avoid RPM failures due to unexpected file owners #640
Conversation
Build failed.
|
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.
Left a comment with a proposed change. Apart from that, looks good to me. Did not test locally, yet. Great work!
When running rootless, files and directories bind mounted from the host operating system can have their ownership listed as nobody:nobody. This is because the UIDs and GIDs that actually own those locations are not available inside the container. Some distribution packages are particular about the file ownerships of some of these locations. eg., Fedora's filesystem RPM. Encountering nobody:nobody as the owner can fail package management transactions involving such packages leading to unforeseen consequences. Therefore, configure RPM to leave these locations alone. containers#640
14afafa
to
4bca04f
Compare
Note that this doesn't seem to be working as I thought it would. |
Build succeeded.
|
When running rootless, files and directories bind mounted from the host operating system can have their ownership listed as nobody:nobody. This is because the UIDs and GIDs that actually own those locations are not available inside the container. Some distribution packages are particular about the file ownerships of some of these locations. eg., Fedora's filesystem and libvirt-libs RPMs. Encountering nobody:nobody as the owner can fail package management transactions involving such packages leading to unforeseen consequences. Therefore, configure RPM to leave these locations alone. containers#640
4bca04f
to
d9ba7ca
Compare
When running rootless, files and directories bind mounted from the host operating system can have their ownership listed as nobody:nobody. This is because the UIDs and GIDs that actually own those locations are not available inside the container. Some distribution packages are particular about the file ownerships of some of these locations. eg., Fedora's filesystem, flatpak and libvirt-libs RPMs. Encountering nobody:nobody as the owner can fail package management transactions involving such packages leading to unforeseen consequences. Therefore, configure RPM to leave these locations alone. containers#640
d9ba7ca
to
7542f5f
Compare
This fixes the We might have to tweak the list of paths in |
Build failed.
|
This is really great news! |
When running rootless, files and directories bind mounted from the
host operating system can have their ownership listed as
nobody:nobody
. This is because the UIDs and GIDs that actually ownthose locations are not available inside the container.
Some distribution packages are particular about the file ownerships of
some of these locations. eg., Fedora's
filesystem
RPM. Encounteringnobody:nobody
as the owner can fail package management transactionsinvolving such packages leading to unforeseen consequences.
Therefore, configure RPM to leave these locations alone.