podman
podman copied to clipboard
[WIP] feat: add cdi-spec-dir option to top level options
In response to https://github.com/containers/podman/issues/18292.
One of the primary benefits of podman is that its possible run without altering the host system. By allowing cdi directories to be passed via command line it maintains this feature.
I'm particularly interested in running podman in a nix-shell with nvidia GPU passthough. Podman and all its dependencies (including nvidia-container-toolkit) come from nix and the host system again doesn't need altering. The one problem with that right now is that I have to write /etc/cdi/nvidia.yaml to be able to use the GPU. Note that the old nvidia-runtime-hook does not work for my use case (which involves vulkan passthrough).
With this change it will be possible to generate a user nvidia.yaml and point podman at that user-specific mount instructions there.
Does this PR introduce a user-facing change?
- Add cdi-spec-dir option to insert additional CDI Spec search paths into the CDI loader.
[APPROVALNOTIFIER] This PR is NOT APPROVED
This pull-request has been approved by: micahcc Once this PR has been reviewed and has the lgtm label, please assign flouthoc for approval. For more information see the Kubernetes Code Review Process.
The full list of commands accepted by this bot can be found here.
Approvers can indicate their approval by writing /approve
in a comment
Approvers can cancel approval by writing /approve cancel
in a comment
Needs: https://github.com/containers/common/pull/1834
A friendly reminder that this PR had no activity for 30 days.
Ephemeral COPR build failed. @containers/packit-build please check.