Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ensure CDI specs do not contain duplicate driver firmware files #731

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from
Draft
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 12 additions & 0 deletions assets/state-container-toolkit/0400_configmap.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,13 +13,25 @@ data:

driver_root=/run/nvidia/driver
driver_root_ctr_path=$driver_root
firmware_search_paths=/lib/firmware
if [[ -f /run/nvidia/validations/host-driver-ready ]]; then
driver_root=/
driver_root_ctr_path=/host
firmware_search_paths=
fi

export NVIDIA_DRIVER_ROOT=$driver_root
export DRIVER_ROOT_CTR_PATH=$driver_root_ctr_path

#
# When the driver container is deployed, we know that driver firmware
# will be located at /run/nvidia/driver/lib/firmware. To prevent the
# possibility of finding multiple instances of the driver firmware,
# due to cyclic mounts of the driver container rootfs that show up on
# the host, we configure the CDI generation code to only look for
# firmware at /lib/firmware relative to the driver root.
#
export CDI_FIRMWARE_SEARCH_PATHS=$firmware_search_paths

#
# The below delay is a workaround for an issue affecting some versions
Expand Down
Loading