Commit 5f25d95
committed
Use enable-cuda-compat hook when ldcache does not exist
This change ensures that the cuda compat drop-in file is created
in a container even if the ld.cache does not exist.
This allows for the creation of the ldcache in the subsequent invocation
of the update-ldcache hook in container images where the cache does not
pre-exist. Examples of such images are distroless images.
Signed-off-by: Evan Lezar <[email protected]>1 parent bad48b6 commit 5f25d95
File tree
2 files changed
+2
-5
lines changed- cmd/nvidia-cdi-hook/cudacompat
2 files changed
+2
-5
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
128 | 128 | | |
129 | 129 | | |
130 | 130 | | |
131 | | - | |
132 | | - | |
133 | | - | |
134 | | - | |
135 | 131 | | |
136 | 132 | | |
137 | 133 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
44 | 44 | | |
45 | 45 | | |
46 | 46 | | |
47 | | - | |
| 47 | + | |
| 48 | + | |
48 | 49 | | |
49 | 50 | | |
50 | 51 | | |
| |||
0 commit comments