mirror of
https://github.com/NVIDIA/nvidia-container-toolkit
synced 2024-11-22 16:29:18 +00:00
Use prefix search for locating graphics files
Signed-off-by: Evan Lezar <elezar@nvidia.com>
This commit is contained in:
parent
db962c4bf2
commit
bea8321205
@ -70,18 +70,14 @@ func NewGraphicsMountsDiscoverer(logger *logrus.Logger, root string) (Discover,
|
|||||||
|
|
||||||
jsonMounts := NewMounts(
|
jsonMounts := NewMounts(
|
||||||
logger,
|
logger,
|
||||||
lookup.NewFileLocator(logger, root),
|
lookup.NewFileLocator(logger, root, "/etc", "/usr/share"),
|
||||||
root,
|
root,
|
||||||
[]string{
|
[]string{
|
||||||
// TODO: We should handle this more cleanly
|
"glvnd/egl_vendor.d/10_nvidia.json",
|
||||||
"/etc/glvnd/egl_vendor.d/10_nvidia.json",
|
"vulkan/icd.d/nvidia_icd.json",
|
||||||
"/etc/vulkan/icd.d/nvidia_icd.json",
|
"vulkan/implicit_layer.d/nvidia_layers.json",
|
||||||
"/etc/vulkan/implicit_layer.d/nvidia_layers.json",
|
"egl/egl_external_platform.d/15_nvidia_gbm.json",
|
||||||
"/usr/share/glvnd/egl_vendor.d/10_nvidia.json",
|
"egl/egl_external_platform.d/10_nvidia_wayland.json",
|
||||||
"/usr/share/vulkan/icd.d/nvidia_icd.json",
|
|
||||||
"/usr/share/vulkan/implicit_layer.d/nvidia_layers.json",
|
|
||||||
"/usr/share/egl/egl_external_platform.d/15_nvidia_gbm.json",
|
|
||||||
"/usr/share/egl/egl_external_platform.d/10_nvidia_wayland.json",
|
|
||||||
},
|
},
|
||||||
)
|
)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user