Skip to content

Commit 991b9c2

Browse files
committed
Skip graphics modifier in CSV mode
In CSV mode the CSV files at /etc/nvidia-container-runtime/host-files-for-container.d/ should be the source of truth for container modifications. This change skips graphics modifications to a container. This prevents conflicts when handling files such as vulkan icd files which are already defined in the CSV file. Signed-off-by: Evan Lezar <[email protected]>
1 parent fdad392 commit 991b9c2

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

internal/runtime/runtime_factory.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -122,6 +122,9 @@ func supportedModifierTypes(mode string) []string {
122122
case "cdi":
123123
// For CDI mode we make no additional modifications.
124124
return []string{"mode"}
125+
case "csv":
126+
// For CSV mode we support mode and feature-gated modification.
127+
return []string{"mode", "feature-gated"}
125128
default:
126129
return []string{"mode", "graphics", "feature-gated"}
127130
}

0 commit comments

Comments
 (0)