Skip to content

Conversation

@jfroy
Copy link
Collaborator

@jfroy jfroy commented Nov 16, 2025

Distroless container images (e.g. nvcr.io/nvidia/k8s/dcgm-exporter:4.4.1-4.6.0-distroless, nvcr.io/nvidia/gpu-operator:v25.10.0) do not have a top-level ld.so.conf file. Emitting a drop-in for these container images will do nothing. This patch adds a function to create a "standard" top-level ld.so.conf file if it is missing that includes "standard" /etc/ld.so.conf.d/*.conf drop-in files.

@elezar @cdesiniotis

Might impact #1444

@copy-pr-bot
Copy link

copy-pr-bot bot commented Nov 16, 2025

This pull request requires additional validation before any workflows can run on NVIDIA's runners.

Pull request vetters can view their responsibilities here.

Contributors can view more details about this message here.

@elezar elezar added this to the v1.18.1 milestone Nov 17, 2025
@jfroy jfroy force-pushed the create-ldsoconf-if-missing branch from d7a4ca9 to 30479f7 Compare November 17, 2025 16:06
@jfroy jfroy changed the title ldconfig: Create top-level conf file is none exists instead of a drop-in ldconfig: Create ld.so.conf file if missing Nov 17, 2025
@jfroy jfroy force-pushed the create-ldsoconf-if-missing branch 2 times, most recently from 01764d6 to 929c64b Compare November 17, 2025 22:00
@elezar
Copy link
Member

elezar commented Nov 18, 2025

/ok-to-test 929c64b

Some container images (namely distroless images) may not have the
/etc/ld.so.conf file present. This patch modifies the ldconfig CDI hook
to create a "standard" top-level ld.so.conf file if it is missing that
includes "standard" /etc/ld.so.conf.d/*.conf drop-in files.

Signed-off-by: Jean-Francois Roy <[email protected]>
@jfroy jfroy force-pushed the create-ldsoconf-if-missing branch from 929c64b to f2ac792 Compare November 19, 2025 04:57
@elezar
Copy link
Member

elezar commented Nov 19, 2025

/cherry-pick release-1.18

@elezar
Copy link
Member

elezar commented Nov 19, 2025

/ok-to-test f2ac792

@elezar elezar merged commit e1075cb into NVIDIA:main Nov 19, 2025
13 checks passed
@github-actions
Copy link

🤖 Backport PR created for release-1.18: #1468

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants