← Back to Pull requests

docs: fix inconsistency in default CDI search path #29926

Merged
cyqsimon merged 1 files (5 lines) on Oct 19, 2026 08:46 UTC
View on GitHub
cyqsimon cyqsimon commented on Oct 08, 2026 06:28 UTC
Author

The documented CDI search path in man podman does not mention /var/run/cdi. This minor PR fixes that.

See also: containers/common#2462.

Checklist

Ensure you have completed the following checklist for your pull request to be reviewed:

  • I have read and understood our contributing guidelines and will not have more than two open PRs as a new contributor.

  • PR description, commit message, and GitHub comments are human-written, per LLM Policy

  • Certify you wrote the patch or otherwise have the right to pass it on as an open-source patch by including your Signed-off-by line in all

  • commits. (git commit -s). (If needed, use git commit -s --amend). The author email must match
    the sign-off email address. Read the DCO Sign-off requirements
    and ensure you follow them before signing off your commits.
  • Referenced issues using Fixes: #00000 in commit message (if applicable)

  • Tests have been added/updated (or no tests are needed)

  • Documentation has been updated (or no documentation changes are needed)

  • All commits pass make validatepr (format/lint checks)

  • Release note entered in the section below (or None if no user-facing changes)
  • Does this PR introduce a user-facing change?

    None

    Diff: 5 lines (+4 / -1) across 1 files Reviewer: Honny1 Review duration: 15978m
    All Vouch review confidence checks passed
    Residual risk 0.03 = Change Risk (0.19) × (1 − Review Confidence (0.85)). Review depth and reviewer attention state are adequate.
    Model 1 · Change Risk (XGBoost)
    Score: 0.19 · 5 lines diff across 1 files
    0.19
    Model 2 · Review Depth (DistilBERT)
    Depth Score: 0.74 · 5 substantive comment(s)
    0.74
    Model 3 · Review Timing & Attention
    Session adequacy: 100% · Reviewer familiarity: 50%
    84%
    Bedrock Claude 3 · Risk Narration
    (disconnected)
    Groq
    Groq Risk Narration
    AWS Bedrock is currently disconnected. Generate high-confidence PR triage narration on-demand using Groq.
    Model 1 · Change Risk Attribution
    SHAP Weights
    Diff Size diff_size
    0.107
    Ai Authored ai_authored
    0.050
    Real PR Conversation Timeline
    20 items
    Honny1 Honny1 approved these changes on Oct 08, 2026 10:24 UTC
    Approved Reviewer

    Nice fix. If you want to go one step further, a brief mention that defaults also come from cdi_spec_dirs in containers.conf(5) and show up in podman info might help readers who override config. I am totally fine to merge as-is.

    danishprakash danishprakash approved these changes on Oct 08, 2026 10:54 UTC
    Approved Reviewer

    LGTM once @Honny1's suggestions are addressed.

    cyqsimon cyqsimon commented on Oct 09, 2026 07:12 UTC
    Author

    I decided to reword the whole thing. This should be detailed enough.

    packit-as-a-service[bot] packit-as-a-service[bot] commented on Oct 09, 2026 07:21 UTC
    Bot

    [NON-BLOCKING] Packit jobs failed. @podman-container-tools/packit-jobs please check. Everyone else, feel free to ignore.

    Honny1 Honny1 approved these changes on Oct 09, 2026 09:20 UTC
    Approved Reviewer

    LGTM, Thanks!

    PTAL @podman-container-tools/podman-maintainers @podman-container-tools/podman-reviewers

    giuseppe giuseppe commented on code on Oct 09, 2026 09:43 UTC
    Code Review
    docs/source/markdown/podman.1.md:1
    @@ -30,7 +30,10 @@ use quadlet files. See **podman-quadlet**(1) and **podman-systemd.unit**(5).
     
     #### **--cdi-spec-dir**=*path*
     
    -The CDI spec directory path (may be set multiple times). Default path is `/etc/cdi`.
    +The CDI spec directory path. When used multiple times, paths from later options have higher precedence.
    +
    +Default paths are `/etc/cdi` and `/var/run/cdi`, in ascending order of precedence.
    +This can be configured using `engine.cdi_spec_dirs` in `containers.conf`.

    the wording we have for hooks-dir seems clearer to me, let's use that

    giuseppe giuseppe commented on Oct 09, 2026 09:44 UTC
    Reviewer

    please use your real name and email for the Signed-off-by line and commit author

    cyqsimon cyqsimon commented on code on Oct 09, 2026 09:53 UTC
    Code Review
    docs/source/markdown/podman.1.md:1
    @@ -30,7 +30,10 @@ use quadlet files. See **podman-quadlet**(1) and **podman-systemd.unit**(5).
     
     #### **--cdi-spec-dir**=*path*
     
    -The CDI spec directory path (may be set multiple times). Default path is `/etc/cdi`.
    +The CDI spec directory path. When used multiple times, paths from later options have higher precedence.
    +
    +Default paths are `/etc/cdi` and `/var/run/cdi`, in ascending order of precedence.
    +This can be configured using `engine.cdi_spec_dirs` in `containers.conf`.

    Is real name and email now a requirement? Frankly that seems rather ridiculous.

    cyqsimon cyqsimon commented on code on Oct 09, 2026 10:04 UTC
    Code Review
    docs/source/markdown/podman.1.md:1
    @@ -30,7 +30,10 @@ use quadlet files. See **podman-quadlet**(1) and **podman-systemd.unit**(5).
     
     #### **--cdi-spec-dir**=*path*
     
    -The CDI spec directory path (may be set multiple times). Default path is `/etc/cdi`.
    +The CDI spec directory path. When used multiple times, paths from later options have higher precedence.
    +
    +Default paths are `/etc/cdi` and `/var/run/cdi`, in ascending order of precedence.
    +This can be configured using `engine.cdi_spec_dirs` in `containers.conf`.

    the wording we have for hooks-dir seems clearer to me, let's use that

    Default paths are `/etc/cdi` and `/var/run/cdi` in order of increasing precedence.
    

    Like this?

    giuseppe giuseppe commented on code on Oct 09, 2026 10:12 UTC
    Code Review
    docs/source/markdown/podman.1.md:1
    @@ -30,7 +30,10 @@ use quadlet files. See **podman-quadlet**(1) and **podman-systemd.unit**(5).
     
     #### **--cdi-spec-dir**=*path*
     
    -The CDI spec directory path (may be set multiple times). Default path is `/etc/cdi`.
    +The CDI spec directory path. When used multiple times, paths from later options have higher precedence.
    +
    +Default paths are `/etc/cdi` and `/var/run/cdi`, in ascending order of precedence.
    +This can be configured using `engine.cdi_spec_dirs` in `containers.conf`.

    Yes please

    giuseppe giuseppe commented on code on Oct 09, 2026 10:15 UTC
    Code Review
    docs/source/markdown/podman.1.md:1
    @@ -30,7 +30,10 @@ use quadlet files. See **podman-quadlet**(1) and **podman-systemd.unit**(5).
     
     #### **--cdi-spec-dir**=*path*
     
    -The CDI spec directory path (may be set multiple times). Default path is `/etc/cdi`.
    +The CDI spec directory path. When used multiple times, paths from later options have higher precedence.
    +
    +Default paths are `/etc/cdi` and `/var/run/cdi`, in ascending order of precedence.
    +This can be configured using `engine.cdi_spec_dirs` in `containers.conf`.

    Is real name and email now a requirement? Frankly that seems rather ridiculous.

    Podman is under CNCF and this is the requirement for DCO: https://github.com/cncf/foundation/blob/main/policies-guidance%2Fdco-guidelines.md

    It is not very clear and I've already asked for a clarification, but the DCO used in the current commit looks closer to an anonymous contribution than using a real name

    cyqsimon cyqsimon commented on code on Oct 09, 2026 14:33 UTC
    Code Review
    docs/source/markdown/podman.1.md:1
    @@ -30,7 +30,10 @@ use quadlet files. See **podman-quadlet**(1) and **podman-systemd.unit**(5).
     
     #### **--cdi-spec-dir**=*path*
     
    -The CDI spec directory path (may be set multiple times). Default path is `/etc/cdi`.
    +The CDI spec directory path. When used multiple times, paths from later options have higher precedence.
    +
    +Default paths are `/etc/cdi` and `/var/run/cdi`, in ascending order of precedence.
    +This can be configured using `engine.cdi_spec_dirs` in `containers.conf`.

    Your real name is the name you convey to people in the community for them to use to identify you as you. The key concern is that your identification is sufficient enough to contact you if an issue were to arise in the future about your contribution.

    > Your real name should not be an anonymous id or false name that misrepresents who you are.

    My signed-off name is literally my GitHub username. How is this insufficient for people on GitHub to identify me as me? For contact you can ping me.

    And it says nothing about email.

    cyqsimon cyqsimon commented on code on Oct 09, 2026 14:35 UTC
    Code Review
    docs/source/markdown/podman.1.md:1
    @@ -30,7 +30,10 @@ use quadlet files. See **podman-quadlet**(1) and **podman-systemd.unit**(5).
     
     #### **--cdi-spec-dir**=*path*
     
    -The CDI spec directory path (may be set multiple times). Default path is `/etc/cdi`.
    +The CDI spec directory path. When used multiple times, paths from later options have higher precedence.
    +
    +Default paths are `/etc/cdi` and `/var/run/cdi`, in ascending order of precedence.
    +This can be configured using `engine.cdi_spec_dirs` in `containers.conf`.

    Suffice to say I strongly disagree with you. And if an authoritative third party judges that your interpretation is correct (which I consider unlikely), I would not be contributing anything to any open source project that adopts this requirement.

    TomSweeneyRedHat TomSweeneyRedHat commented on Oct 13, 2026 00:19 UTC
    Contributor

    Changes LGTM

    danishprakash danishprakash commented on code on Oct 13, 2026 06:29 UTC
    Code Review
    docs/source/markdown/podman.1.md:1
    @@ -30,7 +30,10 @@ use quadlet files. See **podman-quadlet**(1) and **podman-systemd.unit**(5).
     
     #### **--cdi-spec-dir**=*path*
     
    -The CDI spec directory path (may be set multiple times). Default path is `/etc/cdi`.
    +The CDI spec directory path. When used multiple times, paths from later options have higher precedence.
    +
    +Default paths are `/etc/cdi` and `/var/run/cdi`, in ascending order of precedence.
    +This can be configured using `engine.cdi_spec_dirs` in `containers.conf`.

    FWIW the requirement was relaxed[1][2] from a strict 'real' name to a 'known identity' so I would be okay with using a github username since that's a good proxy for your identity in public, especially in the open source space.

    [1] - https://github.com/cncf/foundation/issues/383
    [2] - https://github.com/podman-container-tools/community/blob/main/CONTRIBUTING.md#dco-sign-off

    danishprakash danishprakash commented on Oct 13, 2026 06:29 UTC
    Contributor

    @cyqsimon can you squash the commits into one before we can get this in? Thanks

    cyqsimon cyqsimon commented on Oct 14, 2026 05:05 UTC
    Author

    Squashed.

    danishprakash danishprakash commented on Oct 14, 2026 05:53 UTC
    Contributor

    PTAL @giuseppe

    Luap99 Luap99 commented on code on Oct 14, 2026 10:04 UTC
    Code Review
    docs/source/markdown/podman.1.md:1
    @@ -30,7 +30,10 @@ use quadlet files. See **podman-quadlet**(1) and **podman-systemd.unit**(5).
     
     #### **--cdi-spec-dir**=*path*
     
    -The CDI spec directory path (may be set multiple times). Default path is `/etc/cdi`.
    +The CDI spec directory path. When used multiple times, paths from later options have higher precedence.
    +
    +Default paths are `/etc/cdi` and `/var/run/cdi`, in ascending order of precedence.
    +This can be configured using `engine.cdi_spec_dirs` in `containers.conf`.

    We have never been strict about this, I for one would not mind the github username. However the other concern is the email address as it is clearly not a valid one that one could contact the person under:

    The key concern is that your identification is sufficient enough to contact you if an issue were to arise in the future about your contribution.

    At the same time pinging a github account is a valid way to contact someone so I think this is good enough, at least for a contribution like this I see no point in blocking it because of this.
    CNCF will take ages to respond, if they will at all.

    Reviewers
    Assignees
    cyqsimon cyqsimon
    Labels
    risk: low confidence: 84.5% reviewed
    Vouch Risk Breakdown
    AI-powered review risk analysis
    Change Risk
    Change Risk · Model 1 (XGBoost)
    Predicted defect probability (0.00–1.00) based on diff churn, modified sensitive files, and author risk history.
    Score: 18.7% (LOW) · Higher = larger blast radius
    18.7%
    Review Confidence
    Review Confidence · Models 2 & 3
    Scrutiny score (0.00–1.00) combining DistilBERT semantic review depth with reviewer familiarity and session dwell time.
    Score: 84.5% · Lower = rushed or shallow review
    84.5%
    Residual Risk
    Residual Risk · Core Equation
    Residual = Change × (1 − Confidence)
    Unmitigated risk surviving review. ≥ 0.65 triggers an automated re-queue to protect production.
    Score: 2.9% · Safe to merge
    2.9%