Repository navigation
Commit 0d5f0e9
committed
CI: preserve SUID bit when refreshing container nvidia binaries
refresh_container_libs() used 'cp -f --remove-destination' (verbatim
from the runner team's nvgha-driver), which without -p/--preserve
strips the SUID/SGID bits on the destination. /usr/bin/nvidia-modprobe
ships 4755 and NVML's state-changing calls (e.g.
nvmlDeviceSetPersistenceMode) route through it; once SUID is gone the
container-side call returns NVML_ERROR_UNKNOWN, which is what cuda.core's
test_persistence_mode_enabled was hitting.
Add a stat diagnostic line at the end of refresh_container_libs() so
the next CI log records nvidia-modprobe's post-refresh mode.1 parent 00896dc commit 0d5f0e9
1 file changed
Lines changed: 12 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
167 | 167 | | |
168 | 168 | | |
169 | 169 | | |
170 | | - | |
| 170 | + | |
| 171 | + | |
| 172 | + | |
| 173 | + | |
| 174 | + | |
| 175 | + | |
171 | 176 | | |
172 | 177 | | |
173 | 178 | | |
| 179 | + | |
| 180 | + | |
| 181 | + | |
| 182 | + | |
| 183 | + | |
| 184 | + | |
174 | 185 | | |
175 | 186 | | |
176 | 187 | | |
| |||
0 commit comments