Commit e1b4a1b
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.
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]>1 parent ede931e commit e1b4a1b
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 | | |
2 | 2 | | |
| 3 | + | |
| 4 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
| 3 | + | |
| 4 | + | |
3 | 5 | | |
4 | 6 | | |
5 | 7 | | |
| |||
Lines changed: 7 additions & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
112 | 112 | | |
113 | 113 | | |
114 | 114 | | |
115 | | - | |
116 | | - | |
117 | | - | |
118 | 115 | | |
119 | 116 | | |
120 | 117 | | |
| |||
132 | 129 | | |
133 | 130 | | |
134 | 131 | | |
135 | | - | |
136 | | - | |
| 132 | + | |
| 133 | + | |
| 134 | + | |
| 135 | + | |
| 136 | + | |
| 137 | + | |
| 138 | + | |
137 | 139 | | |
138 | 140 | | |
139 | 141 | | |
| |||
0 commit comments