Skip to content

DIVE-3512: do not let a missing readelf abort the installer - #4

Merged
5dive-bot merged 1 commit into
mainfrom
dive-3512-buzz-cli-release
Aug 17, 2026
Merged

DIVE-3512: do not let a missing readelf abort the installer#4
5dive-bot merged 1 commit into
mainfrom
dive-3512-buzz-cli-release

Conversation

@5dive-bot

Copy link
Copy Markdown
Collaborator

readelf ships with binutils and is not guaranteed on a minimal server image, which is exactly the kind of box install-buzz-cli.sh targets. It was called in three places inside command substitutions under set -euo pipefail, so on a box without it the script aborts — including inside the die() that refuses to overwrite an existing binary, turning a careful refusal into a crash.

It is only ever used to PRINT identity, never to decide whether to install, so it now degrades to a message naming the missing package. The checksum verification that actually gates the install is untouched: that uses sha256sum, still a hard requirement.

Found by reading the script against its target environment rather than by running it — this host must carry nothing buzz-shaped, so the installer has not been executed end to end anywhere yet. That gap is named on DIVE-3512 and belongs to the sure-redwood row.

readelf ships with binutils and is not guaranteed on a minimal server image,
which is exactly the kind of box this script targets. It was called in three
places inside command substitutions under `set -euo pipefail`, so on a box
without it the script would abort — including inside the die() that refuses to
overwrite an existing binary, turning a careful refusal into a crash.

It is only ever used to PRINT identity, never to decide whether to install, so
it now degrades to a message naming the missing package rather than failing.
The checksum verification that actually gates the install is unaffected: it
uses sha256sum, which is still a hard requirement.
@5dive-bot
5dive-bot merged commit 4089bd6 into main Aug 17, 2026
4 checks passed
@5dive-bot
5dive-bot deleted the dive-3512-buzz-cli-release branch August 29, 2026 04:06
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.

2 participants