Skip to content

Commit

Permalink
scripts: signall: skip updating hash of previous kmods/
Browse files Browse the repository at this point in the history
Handle case where a sha256sums might contain previous kmods/. In such
case packages.adb for previous kmods/ needs to be skipped as not
included in the sign tar and already signed by previous runs.

Skip is limited to kmods/ entry as those are the only entry expected to
be present in the sha256sums but not included in sign tar.

Signed-off-by: Christian Marangi <[email protected]>
  • Loading branch information
Ansuel authored and ynezz committed Nov 18, 2024
1 parent a75ce02 commit 31eb26b
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions scripts/signall.sh
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,8 @@ if [ -n "$APKSIGNKEY" ]; then

grep 'packages\.adb' sha256sums | while IFS= read -r line; do
filename="${line#*' *'}"
# Skip updating hash of previous kmods/ if not found in sign tar (already signed)
[ ! -f "$filename" ] && [[ "$filename" == kmods/* ]] && continue
escaped_filename="${filename//\//\\\/}"
escaped_filename="${escaped_filename//&/\\&}"
checksum_output=$(sha256sum --binary -- "$filename")
Expand Down

0 comments on commit 31eb26b

Please sign in to comment.