Skip to content

Exchange sha256sum with openssl dgst - #167

Merged
nkraetzschmar merged 1 commit into
mainfrom
shasumfix
Oct 13, 2026
Merged

nkraetzschmar merged 1 commit into
mainfrom
shasumfix

Conversation

@5kt

@5kt 5kt commented Oct 13, 2026

Copy link
Copy Markdown
Contributor

What this PR does / why we need it:
Mode details here : gardenlinux/gardenlinux#4818

Building amd64 images on MacOS fails because of sha256sum call from the uuid_hash script.
Replacing sha256sum with openssl dgst -sha256 -r fixes the problem. Note that the output between sha256sum and openssl is slightly different

root@89ebd3ee14dc:/# echo -n "gardenlinux" | sha256sum
b2f435f20b7b2224ccb7451c1af15ebab9564c9a7f84aa0fb968ce795e177467  -
root@89ebd3ee14dc:/# echo -n "gardenlinux" | openssl dgst -sha256 -r
b2f435f20b7b2224ccb7451c1af15ebab9564c9a7f84aa0fb968ce795e177467 *stdin

but this makes no difference in our case.

Which issue(s) this PR fixes:
Fixes : gardenlinux/gardenlinux#4818

Signed-off-by: Stefan Catargiu <13122921+5kt@users.noreply.github.com>
@nkraetzschmar
nkraetzschmar merged commit f7cf910 into main Oct 13, 2026
7 checks passed
@nkraetzschmar
nkraetzschmar deleted the shasumfix branch October 13, 2026 13:29
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.

[ER] Build image amd64 on MacOS (Darwin) arm64 (aarch64) machine

2 participants