Skip to content

Make nvidia-driver install idempotent #315

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

Merged
merged 3 commits into from
Oct 12, 2023
Merged

Make nvidia-driver install idempotent #315

merged 3 commits into from
Oct 12, 2023

Conversation

sjpb
Copy link
Collaborator

@sjpb sjpb commented Oct 4, 2023

Makes the install of the nvidia-driver module by the CUDA role idempotent, so that the module's packages are not updated by rerunning the role.

If using the nvidia-driver:latest-dkms module stream, running dnf module install nvidia-driver will update drivers if more recent ones become available. This is in contrast to non-modular dnf install $package_name behaviour, where installed packages are not updated by rerunning the command.

This PR changes the role to check if a nvidia-driver module is enabled, and only if not, search for the highest-numbered dkms-variant module stream and enable that.

@sjpb sjpb marked this pull request as ready for review October 4, 2023 14:55
@sjpb sjpb requested a review from a team as a code owner October 4, 2023 14:55
@sjpb sjpb requested a review from m-bull October 6, 2023 14:08
Copy link
Collaborator

@m-bull m-bull left a comment

Choose a reason for hiding this comment

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

LGTM

@sjpb sjpb merged commit 089d85c into main Oct 12, 2023
@sjpb sjpb deleted the fix/nvidia-driver-install branch October 12, 2023 09:30
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