From 45719149ae18928e2801951a5a6358a5101c9c30 Mon Sep 17 00:00:00 2001 From: oddlama Date: Wed, 27 Oct 2021 13:06:34 +0200 Subject: [PATCH] fix: adapt rhash verify to process digest files with absolute paths --- scripts/functions.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/scripts/functions.sh b/scripts/functions.sh index 406fbab..300f499 100644 --- a/scripts/functions.sh +++ b/scripts/functions.sh @@ -809,7 +809,8 @@ function download_stage3() { # Check hashes einfo "Verifying tarball integrity" - rhash -P --check <(grep -B 1 'tar.xz$' "${CURRENT_STAGE3}.DIGESTS.asc") \ + # Replace any absolute paths in the digest file with just the stage3 basename, so it will be found by rhash + rhash -P --check <(grep -B 1 'tar.xz$' "${CURRENT_STAGE3}.DIGESTS.asc" | sed -e 's/ .*stage3-/ stage3-/') \ || die "Checksum mismatch!" # Create verification file in case the script is restarted