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

Include sbin in path when running podman network command #29

Merged
merged 2 commits into from
Nov 20, 2021

Conversation

optiz0r
Copy link
Contributor

@optiz0r optiz0r commented Nov 19, 2021

When running podman network commands, if the selected storage driver
relies in an executable in the PATH, then the podman command must
be run with that executable available. In the case of ZFS storage
driver, the zfs binary may be in /usr/sbin, so this commit adds
the sbin directories to the PATHs.

In all other places in the module, the PATH is set to include both
bin and sbin directories, the podman::network defined type is the
only place I could find where sbin was missing.

Also strips an errant double quote which was introduced during a refactoring.

When running `podman network` commands, if the selected storage driver
relies in an executable in the PATH, then the podman command must
be run with that executable available. In the case of ZFS storage
driver, the `zfs` binary may be in /usr/sbin, so this commit adds
the sbin directories to the PATHs.

In all other places in the module, the PATH is set to include both
bin and sbin directories, the podman::network defined type is the
only place I could find where sbin was missing.
@southalc southalc merged commit 0ee6d7e into southalc:master Nov 20, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants