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 <elezar@nvidia.com>
This commit is contained in:
Evan Lezar 2025-01-22 13:49:55 +01:00
parent fdad3927b4
commit 991b9c222f
No known key found for this signature in database

View File

@ -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"}
}