feat: Kiwi-build generates sha256sum now #304

Merged
eminguez merged 1 commits from eminguez/suse-edge-factory:kiwi-sha256 into main 2025-11-18 10:23:54 +01:00
Owner
Related to https://github.com/suse-edge/suse-edge.github.io/pull/962 and https://suse.slack.com/archives/C02J3PCPV4G/p1763048595297359?thread_ts=1763040641.612619&cid=C02J3PCPV4G
eminguez added 1 commit 2025-11-14 15:05:59 +01:00
feat: Kiwi-build generates sha256sum now
Some checks failed
Check Release Manifest Local Charts Versions / Check Release Manifest Local Charts Versions (pull_request) Successful in 9s
Build PR in OBS / Build PR in OBS (pull_request_target) Failing after 3h8m50s
6374ec08f1
eminguez requested review from nbelouin 2025-11-14 15:06:14 +01:00
eminguez requested review from roxenham 2025-11-14 15:06:14 +01:00
eminguez requested review from steven.hardy 2025-11-14 15:06:15 +01:00
steven.hardy reviewed 2025-11-14 17:41:51 +01:00
@@ -99,0 +100,4 @@
echo -n "INFO: Generating sha256 checksum file... " && {
# The container image doesn't have jq, so this is the best way I've found to do this
# If it is an iso, it will be on the installation_image section
FILE_PATH=$(awk '/"installation_image"/ {a=1} a==1 && /"filename":/ {print $2; exit}' /tmp/output/kiwi.result.json | tr -d ',"')
Owner

The container does have python, so we could do something like

cat /tmp/output/kiwi.result.json | python3 -c 'import json,sys;print(json.load(sys.stdin)["filename"])'

Which would probably be more robust - or we could install jq :)

The container does have python, so we could do something like ``` cat /tmp/output/kiwi.result.json | python3 -c 'import json,sys;print(json.load(sys.stdin)["filename"])' ``` Which would probably be more robust - or we could install jq :)
Author
Owner

Don't you prefer using awk then? :P

I'll fix it. Thanks for the suggestion!

Don't you prefer using awk then? :P I'll fix it. Thanks for the suggestion!
Author
Owner

Done (I guess). PTAL :)

Done (I guess). PTAL :)
eminguez marked this conversation as resolved
eminguez added 2 commits 2025-11-17 16:29:02 +01:00
feat: Kiwi-build generates sha256sum now
Some checks failed
Check Release Manifest Local Charts Versions / Check Release Manifest Local Charts Versions (pull_request) Successful in 9s
Build PR in OBS / Build PR in OBS (pull_request_target) Failing after 3h8m50s
6374ec08f1
feat: Kiwi-build generates sha256sum now
All checks were successful
Check Release Manifest Local Charts Versions / Check Release Manifest Local Charts Versions (pull_request) Successful in -32s
Build PR in OBS / Build PR in OBS (pull_request_target) Successful in -16s
520fae3fd4
nbelouin approved these changes 2025-11-18 08:46:29 +01:00
eminguez merged commit beed23bd80 into main 2025-11-18 10:23:54 +01:00
eminguez deleted branch kiwi-sha256 2025-11-18 10:23:55 +01:00
Sign in to join this conversation.
No Label
3 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: suse-edge/Factory#304