-
Notifications
You must be signed in to change notification settings - Fork 2.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
Podman looks for config files in /usr/etc as opposed to /etc #18250
Comments
Thanks for reaching out, @VorpalBlade. The /etc/ path is set a build time (see https://github.com/containers/podman/blob/main/Makefile#L41). So it seems like the binary has been built with I don't think there's much we can do upstream as it must be fixed in the Archlinux package. |
@Foxboron can you take a look? |
I can open an Arch bug if you want, but it sounds like you already have an Arch guy/gal in your team here? EDIT: I went ahead and created a downstream bug anyway: https://bugs.archlinux.org/task/78253 |
I assume 3c9ce3e caused this problem, before the file was hard coded to /etc/container/nodocker. |
@vrothberg I think our Makefile is wrong here. Setting prefix before ETCDIR definitely looks not correct to me. I think it is reasonable to have ETCDIR actually default to |
@vrothberg Yes, "$PREFIX" is correct in the package and Are you confusing |
Okay, no. The Is just a weird commit and I'm not sure what it is trying to fix. |
Let's fix the Makefile. Commit 3c9ce3e looks good to me but Thanks folks! |
Revert commit 3d0e08f. `/etc/` does not need a prefix and can be customized with the `ETCDIR` env variable. Fixes: containers#18250 Signed-off-by: Valentin Rothberg <[email protected]>
@vrothberg thanks. I'll pull the fix into the Arch package :) |
It is perfectionably reasonable to have $PREFIX/etc as the normal case and /etc as a special case (for /usr) Like for PREFIX=/opt/podman, and so on |
Sure, and presumably the packager/builder could override ETCDIR to based on/not be based on PREFIX. So neither approach precludes the other option as being possible. At which point you should try to carter to the most common case by default. Most distros like to install packages to /usr and configs to /etc. That is going to be by far the most common case. (Sure, there are exceptions like NixOS, but I don't think they install configs per package either, so that default wouldn't work for them.) |
No, please stick with the proper established conventions. It's hard enough figuring out what non-standard Makefile setups are doing when packaging applications. https://www.gnu.org/software/make/manual/html_node/Directory-Variables.html |
Right, the good ole Anyway, as long as the packaged software does the expected and there are some makes variable to set... |
Upstream changed behavior of the make call (now requires ETCDIR override), which may get reverted again. https://bugs.archlinux.org/task/78253 containers/podman#18250 git-svn-id: file:///srv/repos/svn-community/svn@1447296 9fca08f4-af9d-4005-b8df-a31f2cc04f65
Upstream changed behavior of the make call (now requires ETCDIR override), which may get reverted again. https://bugs.archlinux.org/task/78253 containers/podman#18250 git-svn-id: file:///srv/repos/svn-community/svn@1447296 9fca08f4-af9d-4005-b8df-a31f2cc04f65
As I read this, I believe this is not a Podman issue, so closing. Feel free to continue the conversation here. |
No this is very much a podman regression. |
Issue Description
For some unfathomable reason podman looks for this file under /usr/etc (which is not a thing) instead of /etc.
Steps to reproduce the issue
Steps to reproduce the issue
Describe the results you received
podman ignores the nodocker file in /etc/containers and looks under /usr instead
Describe the results you expected
podman should honor the nodocker file in /etc/containers.
podman info output
Podman in a container
No
Privileged Or Rootless
Rootless
Upstream Latest Release
Yes
Additional environment details
podman was installed using the Arch Linux package.
Additional information
Additional information like issue happens only occasionally or issue happens with a particular architecture or on a particular setting
The text was updated successfully, but these errors were encountered: