From 991b9c222fb35a655e264f68408fb646ccef6d93 Mon Sep 17 00:00:00 2001 From: Evan Lezar Date: Wed, 22 Jan 2025 13:49:55 +0100 Subject: [PATCH] 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 --- internal/runtime/runtime_factory.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/internal/runtime/runtime_factory.go b/internal/runtime/runtime_factory.go index 4bc4e71e..a4426459 100644 --- a/internal/runtime/runtime_factory.go +++ b/internal/runtime/runtime_factory.go @@ -122,6 +122,9 @@ func supportedModifierTypes(mode string) []string { case "cdi": // For CDI mode we make no additional modifications. return []string{"mode"} + case "csv": + // For CSV mode we support mode and feature-gated modification. + return []string{"mode", "feature-gated"} default: return []string{"mode", "graphics", "feature-gated"} }