From c4b4478d1aad4e41dc98621080e7894e275c4255 Mon Sep 17 00:00:00 2001 From: Evan Lezar Date: Fri, 22 Sep 2023 21:13:57 +0200 Subject: [PATCH] Remove default symlink filter Signed-off-by: Evan Lezar --- CHANGELOG.md | 1 + internal/platform-support/tegra/csv.go | 7 +++---- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 20e3175e..92d5d455 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,6 +1,7 @@ # NVIDIA Container Toolkit Changelog ## v1.14.2 +* Fix bug on Tegra-based systems where symlinks were not created in containers. ## v1.14.1 * Fixed bug where contents of `/etc/nvidia-container-runtime/config.toml` is ignored by the NVIDIA Container Runtime Hook. diff --git a/internal/platform-support/tegra/csv.go b/internal/platform-support/tegra/csv.go index 54ce7ee9..f511d327 100644 --- a/internal/platform-support/tegra/csv.go +++ b/internal/platform-support/tegra/csv.go @@ -58,15 +58,14 @@ func (o tegraOptions) newDiscovererFromCSVFiles() (discover.Discover, error) { targetsByType[csv.MountSpecLib], ) - nonLibSymlinks := ignoreFilenamePatterns{"*.so", "*.so.[0-9]"}.Apply(targetsByType[csv.MountSpecSym]...) - o.logger.Debugf("Non-lib symlinks: %v", nonLibSymlinks) + symlinkTargets := targetsByType[csv.MountSpecSym] symlinks := discover.NewMounts( o.logger, o.symlinkLocator, o.driverRoot, - nonLibSymlinks, + symlinkTargets, ) - createSymlinks := o.createCSVSymlinkHooks(nonLibSymlinks, libraries) + createSymlinks := o.createCSVSymlinkHooks(symlinkTargets, libraries) d := discover.Merge( devices,