From patchwork Fri Apr 8 15:11:15 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Peter_M=C3=BCller?= X-Patchwork-Id: 5471 Return-Path: Received: from mail01.ipfire.org (mail01.haj.ipfire.org [172.28.1.202]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-384) client-signature ECDSA (P-384)) (Client CN "mail01.haj.ipfire.org", Issuer "R3" (verified OK)) by web04.haj.ipfire.org (Postfix) with ESMTPS id 4KZhXl0552z3x1s for ; Fri, 8 Apr 2022 15:11:19 +0000 (UTC) Received: from mail02.haj.ipfire.org (mail02.haj.ipfire.org [172.28.1.201]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-384) client-signature ECDSA (P-384)) (Client CN "mail02.haj.ipfire.org", Issuer "R3" (verified OK)) by mail01.ipfire.org (Postfix) with ESMTPS id 4KZhXk4N3jz3vN; Fri, 8 Apr 2022 15:11:18 +0000 (UTC) Received: from mail02.haj.ipfire.org (localhost [127.0.0.1]) by mail02.haj.ipfire.org (Postfix) with ESMTP id 4KZhXk4LSjz2ybk; Fri, 8 Apr 2022 15:11:18 +0000 (UTC) Received: from mail01.ipfire.org (mail01.haj.ipfire.org [172.28.1.202]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-384) client-signature ECDSA (P-384)) (Client CN "mail01.haj.ipfire.org", Issuer "R3" (verified OK)) by mail02.haj.ipfire.org (Postfix) with ESMTPS id 4KZhXj621Dz2xNS for ; Fri, 8 Apr 2022 15:11:17 +0000 (UTC) Received: from [127.0.0.1] (localhost [127.0.0.1]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-384)) (No client certificate requested) by mail01.ipfire.org (Postfix) with ESMTPSA id 4KZhXj0dLkznj for ; Fri, 8 Apr 2022 15:11:16 +0000 (UTC) DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=ipfire.org; s=202003ed25519; t=1649430677; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=R+rnxpxr1UUvQFGRuz5M1wAGAo3r8tvBB/B+w6qqArg=; b=dUv+utp1+vcq1V2fgBKa6ByCz4Aqu2bl3nfW2qFrRw7r+suA6aPkeU98e9hT3Wk8ePaHmJ 4laZLQ43fsJHsoCg== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ipfire.org; s=202003rsa; t=1649430677; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=R+rnxpxr1UUvQFGRuz5M1wAGAo3r8tvBB/B+w6qqArg=; b=azKCeRAktuKc8hZ5IjEwETxpKVxAoCckedgodH7H0mCAVJYff/g8px6Z5PkjTFJx6LNZNr esUnvBNtsViI1D2c69MUv7NnY33Y/o1n8MCv6RYq0+0G0/HuUVy755m8B6nu4flmQWpSa8 oyDINErdv1cfSW7FDYn00MeFqRA3sINAbcdYrFK9G4Zw0N0OA2Am9JW2UJV0fwHy6sh21I aDV3rBhlUkYlohOfOk3OED0gkC03oB24CfCA7DHpLPnF55Bci4EII1c6ylC0Wh7QGTLS++ Rxw7vmwu8x2aOBVhhAYcq58sCtaUrNc8pLwRE3jbROix+sSBik5Up4jwckNgbg== Message-ID: <725ba25a-94f5-f8fe-f9cb-a26fa7d48373@ipfire.org> Date: Fri, 8 Apr 2022 15:11:15 +0000 MIME-Version: 1.0 Subject: [PATCH 3/3] backupiso: Change checksum algorithm to BLAKE2 Content-Language: en-US To: development@lists.ipfire.org References: <9a3bc372-db7a-24c2-478c-6bc481864672@ipfire.org> <814ae2bf-c453-ce55-74eb-e2fb11b5900e@ipfire.org> From: =?utf-8?q?Peter_M=C3=BCller?= In-Reply-To: <814ae2bf-c453-ce55-74eb-e2fb11b5900e@ipfire.org> X-BeenThere: development@lists.ipfire.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: IPFire development talk List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: development-bounces@lists.ipfire.org Sender: "Development" Reported-by: Arne Fitzenreiter Signed-off-by: Peter Müller --- src/scripts/backupiso | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/src/scripts/backupiso b/src/scripts/backupiso index fe5376741..ef017e3be 100644 --- a/src/scripts/backupiso +++ b/src/scripts/backupiso @@ -80,30 +80,30 @@ then wget --quiet -c ${URL}${ISO} fi -echo "Fetching ${URL}${ISO}.md5" -wget --quiet -O ${ISO}.md5 ${URL}${ISO}.md5 +echo "Fetching ${URL}${ISO}.b2" +wget --quiet -O ${ISO}.b2 ${URL}${ISO}.b2 -echo "Checking md5 of ${ISO}" -md5sum --status -c ${ISO}.md5 +echo "Checking BLAKE2 checksum of ${ISO}" +b2sum --status -c ${ISO}.b2 if [ $? -eq 0 ] || [ $? -eq 24 ] then - echo "md5 is OK" + echo "BLAKE2 checksum is OK" else - echo "md5 mismatch" + echo "BLAKE2 checksum mismatch" echo "Fetching again ${URL}${ISO}" wget --quiet -O ${ISO} ${URL}${ISO} - echo "Checking again md5 of ${ISO}" - md5sum --status -c ${ISO}.md5 + echo "Checking BLAKE2 checksum of ${ISO} again" + b2sum --status -c ${ISO}.b2 if [ $? -eq 0 ] || [ $? -eq 24 ] then - echo "md5 is OK" + echo "BLAKE2 checksum is OK" else - echo "md5 mismatch" - echo "aborting backup because md5 mismatch" + echo "BLAKE2 checksum mismatch" + echo "aborting backup because BLAKE2 checksum mismatch" exit 1 fi fi -rm ${ISO}.md5 +rm ${ISO}.b2 echo "Remastering iso" mkdir -p backupiso.tmp.${TS}