File tree 3 files changed +11
-5
lines changed
deployments/systemd/packages/rpm/SPECS
3 files changed +11
-5
lines changed Original file line number Diff line number Diff line change 1
1
* .swp
2
2
* .swo
3
+ dist /
4
+ .vscode /
Original file line number Diff line number Diff line change 1
1
# NVIDIA MIG Manager Changelog
2
2
3
+ - Fix rpm spec to maintain the config.yaml and hooks.yaml symlinks during an update
4
+
3
5
## v0.10.0
4
6
- Add GH200 144G HBM3e with PCI ID x234810DE
5
7
- Bump Golang version to v1.23.2
Original file line number Diff line number Diff line change @@ -112,9 +112,6 @@ maybe_add_hooks_symlink
112
112
maybe_add_config_symlink
113
113
114
114
%preun
115
- systemctl disable nvidia-mig-manager.service
116
- systemctl daemon-reload
117
-
118
115
function maybe_remove_hooks_symlink() {
119
116
local target=$( readlink -f /etc/nvidia-mig-manager/hooks.yaml)
120
117
if [ " ${target} " = " /etc/nvidia-mig-manager/hooks-minimal.yaml" ]; then
@@ -132,8 +129,13 @@ function maybe_remove_config_symlink() {
132
129
fi
133
130
}
134
131
135
- maybe_remove_hooks_symlink
136
- maybe_remove_config_symlink
132
+ if [ $1 -eq 0 ]
133
+ then
134
+ systemctl disable nvidia-mig-manager.service
135
+ systemctl daemon-reload
136
+ maybe_remove_hooks_symlink
137
+ maybe_remove_config_symlink
138
+ fi
137
139
138
140
%changelog
139
141
# As of 0.6.0-1 we generate the release information automatically
You can’t perform that action at this time.
0 commit comments