Skip to content

Commit bf28201

Browse files
committed
Update rpm spec file to ensure the symlinks are kept during an upgrade
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]>
1 parent ede931e commit bf28201

File tree

3 files changed

+11
-2
lines changed

3 files changed

+11
-2
lines changed

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,4 @@
11
*.swp
22
*.swo
3+
dist/
4+
.vscode/

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
# NVIDIA MIG Manager Changelog
22

3+
## v0.11.0
4+
- Fix rpm spec to maintain the config.yaml and hooks.yaml symlinks during an update
5+
- Update the .gitignore to skip the dist directory.
6+
37
## v0.10.0
48
- Add GH200 144G HBM3e with PCI ID x234810DE
59
- Bump Golang version to v1.23.2

deployments/systemd/packages/rpm/SPECS/nvidia-mig-manager.spec

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -132,8 +132,11 @@ function maybe_remove_config_symlink() {
132132
fi
133133
}
134134

135-
maybe_remove_hooks_symlink
136-
maybe_remove_config_symlink
135+
if [ $1 -eq 0 ]
136+
then
137+
maybe_remove_hooks_symlink
138+
maybe_remove_config_symlink
139+
fi
137140

138141
%changelog
139142
# As of 0.6.0-1 we generate the release information automatically

0 commit comments

Comments
 (0)