Skip to content

Commit

Permalink
Create .sha256 files after mkosi builds
Browse files Browse the repository at this point in the history
Just do it for all files in OTHER.
  • Loading branch information
Vogtinator committed Oct 10, 2024
1 parent a4c1990 commit f7d5999
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions build-recipe-mkosi
Original file line number Diff line number Diff line change
Expand Up @@ -132,6 +132,15 @@ recipe_build_mkosi() {
gzip -9 -f "$f"
done

cat <<-EOF > "$BUILD_ROOT/checksum.sh"
echo "Create sha256 files..."
for f in "/$TOPDIR"/OTHER/*; do
[ -f "\$f" ] || continue
/usr/bin/sha256sum "\$f" > "\$f.sha256"
done
EOF
chroot "$BUILD_ROOT" sh /checksum.sh

# shellcheck disable=SC2034
BUILD_SUCCEEDED=true
}
Expand Down

0 comments on commit f7d5999

Please sign in to comment.