-
Notifications
You must be signed in to change notification settings - Fork 42
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
Update rpm spec file to ensure the symlinks are kept during an upgrade #155
Merged
cdesiniotis
merged 1 commit into
NVIDIA:main
from
KeithMnemonic:update_rpm_spec_file_to_keep_symlinks_when_upgrading
Dec 13, 2024
Merged
Update rpm spec file to ensure the symlinks are kept during an upgrade #155
cdesiniotis
merged 1 commit into
NVIDIA:main
from
KeithMnemonic:update_rpm_spec_file_to_keep_symlinks_when_upgrading
Dec 13, 2024
Conversation
This file contains 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
Contributor
KeithMnemonic
commented
Dec 6, 2024
•
edited
Loading
edited
tariq1890
reviewed
Dec 9, 2024
KeithMnemonic
force-pushed
the
update_rpm_spec_file_to_keep_symlinks_when_upgrading
branch
from
December 9, 2024 19:09
bf28201
to
f28b692
Compare
cdesiniotis
reviewed
Dec 11, 2024
KeithMnemonic
force-pushed
the
update_rpm_spec_file_to_keep_symlinks_when_upgrading
branch
from
December 11, 2024 23:42
f28b692
to
03d2913
Compare
This PR updates the rpm spec file to ensure the symlinks to configf.yaml and hooks.yaml are maintained during a package upgrade. In addition, this also fixes an issue with the nvidia-mig-manager service is set to disabled during an upgrade. Currently when doing a dnf update or dnf reinstall, those two symlinks are removed. Adding a check around these functions: systemctl disable nvidia-mig-manager.service systemctl daemon-reload maybe_remove_hooks_symlink maybe_remove_config_symlink allows the symlinks to remain when a pacakge is reinstalled or updated and keeps the systemd service enabled. Closes: 154 Signed-off-by: KeithMnemonic <[email protected]>
KeithMnemonic
force-pushed
the
update_rpm_spec_file_to_keep_symlinks_when_upgrading
branch
from
December 12, 2024 20:03
03d2913
to
e1b4a1b
Compare
debug showing the upgrade/reinstall works.
|
cdesiniotis
approved these changes
Dec 13, 2024
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, thanks @KeithMnemonic
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.