mirror of
https://github.com/NVIDIA/nvidia-container-toolkit
synced 2024-11-25 21:39:10 +00:00
Resolve all symlinks in ldcache
Signed-off-by: Evan Lezar <elezar@nvidia.com>
This commit is contained in:
parent
46c1c45d85
commit
fc7c8f7520
@ -5,6 +5,7 @@
|
|||||||
* Update `update-ldcache` hook to only update ldcache if it exists.
|
* Update `update-ldcache` hook to only update ldcache if it exists.
|
||||||
* Update `update-ldcache` hook to create `/etc/ld.so.conf.d` folder if it doesn't exist.
|
* Update `update-ldcache` hook to create `/etc/ld.so.conf.d` folder if it doesn't exist.
|
||||||
* Fix failure when libcuda cannot be located during XOrg library discovery.
|
* Fix failure when libcuda cannot be located during XOrg library discovery.
|
||||||
|
* Fix CDI spec generation on systems that use `/etc/alternatives` (e.g. Debian)
|
||||||
|
|
||||||
## v1.13.0
|
## v1.13.0
|
||||||
|
|
||||||
|
@ -307,11 +307,7 @@ func (c *ldcache) resolve(target string) (string, error) {
|
|||||||
link = filepath.Join(filepath.Dir(target), link)
|
link = filepath.Join(filepath.Dir(target), link)
|
||||||
}
|
}
|
||||||
|
|
||||||
// Ensure that the returned path is relative to the root.
|
return c.resolve(link)
|
||||||
link = filepath.Join(c.root, link)
|
|
||||||
|
|
||||||
c.logger.Debugf("Resolved link: '%v' => '%v'", name, link)
|
|
||||||
return link, nil
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// bytesToString converts a byte slice to a string.
|
// bytesToString converts a byte slice to a string.
|
||||||
|
@ -94,7 +94,8 @@ func (l *cudaLocator) Locate(pattern string) ([]string, error) {
|
|||||||
"/usr/lib64",
|
"/usr/lib64",
|
||||||
"/usr/lib/x86_64-linux-gnu",
|
"/usr/lib/x86_64-linux-gnu",
|
||||||
"/usr/lib/aarch64-linux-gnu",
|
"/usr/lib/aarch64-linux-gnu",
|
||||||
"/usr/lib/current",
|
"/usr/lib/x86_64-linux-gnu/nvidia/current",
|
||||||
|
"/usr/lib/aarch64-linux-gnu/nvidia/current",
|
||||||
),
|
),
|
||||||
lookup.WithCount(1),
|
lookup.WithCount(1),
|
||||||
)
|
)
|
||||||
|
Loading…
Reference in New Issue
Block a user