Skip to content

fix(setup): install binutils on the flash host#102

Merged
dakejahl merged 1 commit into
mainfrom
fix/setup-host-binutils
Jul 10, 2026
Merged

fix(setup): install binutils on the flash host#102
dakejahl merged 1 commit into
mainfrom
fix/setup-host-binutils

Conversation

@dakejahl

Copy link
Copy Markdown
Collaborator

Summary

Install binutils from setup.sh, on the host side of the container re-exec. Minimal replacement for #101, which was reverted: its strict flash.sh check demanded NVIDIA's whole prerequisite list (python-is-python3 included) on hosts that have been flashing fine without it.

Problem

NVIDIA's initrd-flash tooling uses strings (binutils) to read the kernel version out of the built Image, with no upfront check — on a stock Ubuntu desktop install it fails mid-flash with a raw command-not-found. This is the one gap a customer actually hit; every other tool the flash needs has either been present in practice or is covered by NVIDIA's own sshpass/abootimg/zstd pre-check. setup.sh's existing apt install can't cover it because it sits after the run_in_container re-exec, so on non-22.04 hosts it installs into the ephemeral build container and never touches the host.

Solution

Add a binutils install in setup.sh's host-side section, before the container re-exec, guarded by IN_BUILD_CONTAINER so the in-container pass skips it. No verification block in flash.sh.

@dakejahl
dakejahl merged commit 4832a6a into main Jul 10, 2026
1 check passed
@dakejahl
dakejahl deleted the fix/setup-host-binutils branch July 10, 2026 21:02
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.

1 participant