Skip to content

Conversation

@ArangoGutierrez
Copy link
Collaborator

@ArangoGutierrez ArangoGutierrez commented Aug 7, 2025

Monitor /usr/bin/nvidia-ctk for changes and trigger CDI refresh during package installation to ensure CDI specifications stay current with both driver and toolkit updates.

  • Add nvidia-ctk binary monitoring to systemd path unit
  • Trigger CDI refresh in DEB/RPM post-install scripts
  • Reorganize RPM spec to handle base package services correctly

Monitor /usr/bin/nvidia-ctk for changes and trigger CDI refresh during
package installation to ensure CDI specifications stay current with
both driver and toolkit updates.

- Add nvidia-ctk binary monitoring to systemd path unit
- Trigger CDI refresh in DEB/RPM post-install scripts
- Reorganize RPM spec to handle base package services correctly

Signed-off-by: Carlos Eduardo Arango Gutierrez <[email protected]>
@ArangoGutierrez ArangoGutierrez self-assigned this Aug 7, 2025
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR enhances the CDI (Container Device Interface) refresh mechanism to trigger updates when both NVIDIA drivers and the container toolkit are modified, ensuring CDI specifications remain synchronized across all components.

  • Add monitoring of /usr/bin/nvidia-ctk binary changes to the systemd path unit
  • Implement immediate CDI refresh triggers in package post-install scripts for both DEB and RPM
  • Reorganize RPM spec file to move systemd service management from main package to base package

Reviewed Changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated no comments.

File Description
packaging/rpm/SPECS/nvidia-container-toolkit.spec Moves systemd service setup and CDI refresh logic from main to base package
packaging/debian/nvidia-container-toolkit-base.postinst Adds immediate CDI refresh trigger after package installation
deployments/systemd/nvidia-cdi-refresh.path Extends monitoring to include nvidia-ctk binary changes
Comments suppressed due to low confidence (1)

@coveralls
Copy link

Pull Request Test Coverage Report for Build 16802195441

Details

  • 0 of 0 changed or added relevant lines in 0 files are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage remained the same at 35.729%

Totals Coverage Status
Change from base Build 16800880147: 0.0%
Covered Lines: 4583
Relevant Lines: 12827

💛 - Coveralls

@ArangoGutierrez ArangoGutierrez added this to the v1.18.0 milestone Aug 7, 2025
Copy link
Member

@elezar elezar left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@ArangoGutierrez ArangoGutierrez merged commit 4ee2e25 into NVIDIA:main Aug 8, 2025
16 checks passed
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.

3 participants