[release-1.19] Update systemd unit conditions to execute nvidia-smi and re-add restart logic#1826
Merged
Merged
Conversation
This ensures that the nvidia-cdi-refresh.service does not start until after the driver is loaded and available. The added benefit of running nvidia-smi is that it will load the module (if not already loaded) and create the device nodes (if not already created). Signed-off-by: Christopher Desiniotis <cdesiniotis@nvidia.com> (cherry picked from commit 66b50d2)
The restart logic was removed when a dependency on the multi-user-target was added in 5fe6b42. However, this change had unforeseen consequences and was later reverted in 5eee5ce. When reverting this change, the restart logic was not re-added to the service. Signed-off-by: Christopher Desiniotis <cdesiniotis@nvidia.com> (cherry picked from commit d5177c7)
Signed-off-by: Christopher Desiniotis <cdesiniotis@nvidia.com>
Coverage Report for CI Build 25890642706Coverage remained the same at 43.341%Details
Uncovered ChangesNo uncovered changes found. Coverage RegressionsNo coverage regressions found. Coverage Stats
💛 - Coveralls |
tariq1890
approved these changes
May 14, 2026
Contributor
|
/ok to test df93c2e |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
🤖 Automated backport of #1825 to
release-1.19✅ Cherry-pick completed successfully with no conflicts.
Original PR: #1825
Original Author: @cdesiniotis
Cherry-picked commits (2):
66b50d2Update systemd unit conditions to execute nvidia-smid5177c7Reintroduce restart logic to nvidia-cdi-refresh.serviceThis backport was automatically created by the backport bot.