From 2f43fc413a67f535bd3b07422240e94783bccc86 Mon Sep 17 00:00:00 2001 From: Emil Velikov Date: Mon, 25 Sep 2023 16:34:41 +0100 Subject: [PATCH] scripts/make-dockerfile.sh: tweak sha256 sum handling Drop the spurious cat, we already echo the value the like above so it's pretty clear what it is in the logs. While here, rename the file to the what's commonly used by us (see the ISOs) and others, while removing the misleading "rootfs.tar" - we're having a tar.zst tarball. Signed-off-by: Emil Velikov --- Dockerfile.template | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/Dockerfile.template b/Dockerfile.template index 9430d80..262015c 100644 --- a/Dockerfile.template +++ b/Dockerfile.template @@ -17,9 +17,8 @@ RUN apk add --no-cache curl tar zstd # TEMPLATE_ROOTFS_RELEASE_URL RUN TEMPLATE_ROOTFS_DOWNLOAD && \ - echo "TEMPLATE_ROOTFS_HASH" > /tmp/rootfs.tar.sha256 && \ - cat /tmp/rootfs.tar.sha256 && \ - sha256sum -c /tmp/rootfs.tar.sha256 && \ + echo "TEMPLATE_ROOTFS_HASH" > /tmp/sha256sums.txt && \ + sha256sum -c /tmp/sha256sums.txt && \ mkdir /rootfs && \ tar -C /rootfs --extract --file "${ROOTFS}"