summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authormidipix <writeonce@midipix.org>2021-11-03 00:40:49 +0000
committermidipix <writeonce@midipix.org>2021-11-12 19:09:59 +0000
commitcf9939802256e70d2eb41c1727d7a1401323ca05 (patch)
tree5e3925578fd881445a80424362ffff0c603ba081
parentcd2b89169bac984ea80691d93a527caac9aface6 (diff)
downloadmpackage-cf9939802256e70d2eb41c1727d7a1401323ca05.tar.bz2
mpackage-cf9939802256e70d2eb41c1727d7a1401323ca05.tar.xz
once/install.sh: record signatures of installed tarballs.
-rwxr-xr-xonce/install.sh6
1 files changed, 6 insertions, 0 deletions
diff --git a/once/install.sh b/once/install.sh
index 07559f1..23ecab4 100755
--- a/once/install.sh
+++ b/once/install.sh
@@ -21,15 +21,21 @@ else
mkdir -p "$SYSROOT"
fi
+rm -f /etc/tarballs.sha256.tmp
+
for tarball in /tarballs/*.tar.gz; do
echo @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
echo extracting files from $tarball
echo ..................................................
tar -xpvf $tarball -C "$SYSROOT"
+ sha256sum $tarball >> /etc/tarballs.sha256.tmp
echo ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
echo
done
+rm -f /etc/tarballs.sha256
+sed 's@/tarballs/@@g' /etc/tarballs.sha256.tmp > /etc/tarballs.sha256
+
/custom.sh
echo