Skip to content

Commit 1f5ce73

Browse files
committed
Fix trigger of CDI refresh service
This change also allows the nvidia-cdi-refresh.service to execute when the nvidia-current kernel module is present instead of restricting this to the nvidia module. Signed-off-by: Evan Lezar <[email protected]>
1 parent 8a85cad commit 1f5ce73

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

deployments/systemd/nvidia-cdi-refresh.service

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ Type=oneshot
2323
# Values from Environment will be replaced if defined in EnvironmentFile
2424
Environment=NVIDIA_CTK_CDI_OUTPUT_FILE_PATH=/var/run/cdi/nvidia.yaml
2525
EnvironmentFile=-/etc/nvidia-container-toolkit/nvidia-cdi-refresh.env
26-
ExecCondition=/usr/bin/grep -qE '/nvidia.ko' /lib/modules/%v/modules.dep
26+
ExecCondition=/usr/bin/grep -qE '/(nvidia|nvidia-current)\.ko[:]' /lib/modules/%v/modules.dep
2727
ExecStart=/usr/bin/nvidia-ctk cdi generate
2828
CapabilityBoundingSet=CAP_SYS_MODULE CAP_SYS_ADMIN CAP_MKNOD
2929

0 commit comments

Comments
 (0)