Skip to content

Guard unzboot copy by arch in ocp_dtk_entrypoint, amd64 doesn't have the binary - #986

Open
lukiod wants to merge 1 commit into
NVIDIA:mainfrom
lukiod:fix-unzboot-amd64-dtk
Open

Guard unzboot copy by arch in ocp_dtk_entrypoint, amd64 doesn't have the binary#986
lukiod wants to merge 1 commit into
NVIDIA:mainfrom
lukiod:fix-unzboot-amd64-dtk

Conversation

@lukiod

@lukiod lukiod commented Aug 26, 2026

Copy link
Copy Markdown

Fixes #984.

install.sh only builds/installs unzboot on aarch64 (EPEL, zboot kernels). ocp_dtk_entrypoint's shared-dir prep copied it unconditionally, so DTK mode crash-loops on amd64 before any build starts:

cp: cannot stat '/usr/bin/unzboot': No such file or directory

Guards both copy sites (the initial shared-dir prep in nv-ctr-run-with-dtk, and the later bin staging in dtk-build-driver which already has $DRIVER_ARCH computed) behind an aarch64 check, using the same TARGETARCH/DRIVER_ARCH normalization already used elsewhere in this file and in install.sh.

Verified by extracting both changed blocks and running them under bash with TARGETARCH set to each value: amd64 skips the copy cleanly with no missing-file error, arm64 with a real file present still copies it correctly.

install.sh only builds/installs unzboot on aarch64 (EPEL, zboot
kernels), but ocp_dtk_entrypoint's shared-dir prep copied it
unconditionally, so DTK mode crash-loops on amd64 before any build
starts: cp: cannot stat '/usr/bin/unzboot': No such file or directory.

Guards both copy sites (shared-dir prep and the later bin staging)
behind an aarch64 check using the same TARGETARCH/DRIVER_ARCH
normalization already used elsewhere in this file and in install.sh.

Verified by extracting both changed blocks and running them under
bash with TARGETARCH set to each value: amd64 skips the copy cleanly
with no missing-file error, arm64 with a real file present still
copies it correctly.
@copy-pr-bot

copy-pr-bot Bot commented Aug 26, 2026

Copy link
Copy Markdown

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.

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.

[Bug]: DTK mode fails on amd64 - shared-dir prep unconditionally copies /usr/bin/unzboot which is only installed on aarch64

1 participant