Skip to content

Guard unzboot copy by arch in rhel10 DTK entrypoint - #987

Closed
lukiod wants to merge 1 commit into
NVIDIA:mainfrom
lukiod:fix-unzboot-amd64-dtk-crash-v2
Closed

Guard unzboot copy by arch in rhel10 DTK entrypoint#987
lukiod wants to merge 1 commit into
NVIDIA:mainfrom
lukiod:fix-unzboot-amd64-dtk-crash-v2

Conversation

@lukiod

@lukiod lukiod commented Aug 26, 2026

Copy link
Copy Markdown

Fixes #984.

install.sh only installs /usr/bin/unzboot when DRIVER_ARCH is aarch64 (RHEL10 arm64 kernel images use the zboot format, per the comment at rhel10/install.sh:56). ocp_dtk_entrypoint copies it unconditionally on both the producer side (line ~42, shared-dir prep) and the consumer side (line ~178, DTK-side bin/ staging), so on amd64 the DTK path fails before any build starts:

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

Guarded both copies by architecture: $TARGETARCH == "arm64" on the producer side (that's the only arch signal available at that point in the script), and $DRIVER_ARCH == "aarch64" on the consumer side, matching the variable already computed there a few lines earlier. Neither guard changes behavior on arm64/aarch64, unzboot still gets copied on both sides exactly as before.

Verification. No RHEL10/OCP DTK environment available to run this end to end, so I simulated both code paths directly against fake files standing in for the real ones: on amd64 the copy block now completes with no unzboot present and no error (previously reproduced the exact reported failure); on arm64/aarch64 unzboot is still correctly copied on both sides. Ran bash -n for a syntax check, clean.

install.sh only installs /usr/bin/unzboot when DRIVER_ARCH is aarch64
(RHEL10 arm64 kernel images use the zboot format). ocp_dtk_entrypoint
copied it unconditionally on both sides, so the amd64 DTK path fails
before any build starts: cp: cannot stat '/usr/bin/unzboot'.

Guard both copies by architecture, matching install.sh's own condition.

Signed-off-by: Mohak Gupta <mohakgupta0981@gmail.com>
@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.

@lukiod

lukiod commented Aug 26, 2026

Copy link
Copy Markdown
Author

duplicate of #986, already fixes the same issue, closing this one

@lukiod lukiod closed this Aug 26, 2026
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