Skip to content

Normalize NVIDIA R595 library paths to /usr/lib/#473

Merged
KCSesh merged 3 commits into
bottlerocket-os:developfrom
maherthomsi:595-fix
Jun 25, 2026
Merged

Normalize NVIDIA R595 library paths to /usr/lib/#473
KCSesh merged 3 commits into
bottlerocket-os:developfrom
maherthomsi:595-fix

Conversation

@maherthomsi

@maherthomsi maherthomsi commented Jun 25, 2026

Copy link
Copy Markdown
Contributor

Description of changes:

Apply the same library path normalization from PR #425 (R580) to the R595 driver packages.

Move NVIDIA libraries from /usr/lib/nvidia/tesla/ to the standard /usr/lib/ path. Create backwards-compatibility symlinks in /usr/lib/nvidia/tesla/ pointing back to /usr/lib/.

Remove nvidia-ld.so.conf.in (Source302) and its references since libraries are now in the standard linker search path. Remove the tmpfiles entry for the nvidia/tesla directory.

Without this change, the NVIDIA device plugin in CDI mode (cdi-cri) fails to generate its CDI spec because it cannot locate libcuda.so via the ldcache. The plugin searches ld.so.cache which only includes standard library paths - not the nvidia/tesla/ subdirectory.

Packages updated:

  • kmod-6.1-nvidia-r595
  • kmod-6.12-nvidia-r595
  • kmod-6.18-nvidia-r595

Testing done:
Built kernel-kit and aws-k8s-1.35-nvidia variant with kmod-6.12-nvidia-r595
Launched AMI and validated:

  • Libraries at /usr/lib/, symlinks at /usr/lib/nvidia/tesla/
  • Device plugin registers in both CDI and legacy modes
  • nvidia-smi confirms driver 595.71.05 / CUDA 13.2

Terms of contribution:

By submitting this pull request, I agree that this contribution is dual-licensed under the terms of both the Apache License, version 2.0, and the MIT license.

Move nvidia libraries from /usr/lib/nvidia/tesla/ to the standard
/usr/lib/ path. Create backwards-compatibility symlinks in
/usr/lib/nvidia/tesla/ pointing back to /usr/lib/.

Remove nvidia-ld.so.conf.in (Source302) and its references since
libraries are now in the standard linker search path. Remove the
tmpfiles entry for the nvidia/tesla directory.

Signed-off-by: Maher Homsi <maherhom@amazon.com>
Move nvidia libraries from /usr/lib/nvidia/tesla/ to the standard
/usr/lib/ path. Create backwards-compatibility symlinks in
/usr/lib/nvidia/tesla/ pointing back to /usr/lib/.

Remove nvidia-ld.so.conf.in (Source302) and its references since
libraries are now in the standard linker search path. Remove the
tmpfiles entry for the nvidia/tesla directory.

Signed-off-by: Maher Homsi <maherhom@amazon.com>
Move nvidia libraries from /usr/lib/nvidia/tesla/ to the standard
/usr/lib/ path. Create backwards-compatibility symlinks in
/usr/lib/nvidia/tesla/ pointing back to /usr/lib/.

Remove nvidia-ld.so.conf.in (Source302) and its references since
libraries are now in the standard linker search path. Remove the
tmpfiles entry for the nvidia/tesla directory.

Signed-off-by: Maher Homsi <maherhom@amazon.com>
@KCSesh KCSesh merged commit c25f0d9 into bottlerocket-os:develop Jun 25, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants