Skip to content

Commit

Permalink
Update rpm spec file to ensure the symlinks are kept during an upgrade
Browse files Browse the repository at this point in the history
This PR updates the rpm spec file to ensure the symlinks to
configf.yaml and hooks.yaml are maintained during a package upgrade.

Currently when doing a dnf update or dnf reinstall, those two
symlinks are removed. Adding a check around these functions:

maybe_remove_hooks_symlink
maybe_remove_config_symlink

allows the symlinks to remain when a pacakge is reinstalled or updated.

Additionally, a couple entries were added to the .gitignore as a
convenience.

Closes: 154
Signed-off-by: KeithMnemonic <[email protected]>
  • Loading branch information
KeithMnemonic committed Dec 6, 2024
1 parent ede931e commit bf28201
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 2 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,4 @@
*.swp
*.swo
dist/
.vscode/
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# NVIDIA MIG Manager Changelog

## v0.11.0
- Fix rpm spec to maintain the config.yaml and hooks.yaml symlinks during an update
- Update the .gitignore to skip the dist directory.

## v0.10.0
- Add GH200 144G HBM3e with PCI ID x234810DE
- Bump Golang version to v1.23.2
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -132,8 +132,11 @@ function maybe_remove_config_symlink() {
fi
}

maybe_remove_hooks_symlink
maybe_remove_config_symlink
if [ $1 -eq 0 ]
then
maybe_remove_hooks_symlink
maybe_remove_config_symlink
fi

%changelog
# As of 0.6.0-1 we generate the release information automatically
Expand Down

0 comments on commit bf28201

Please sign in to comment.