aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobin H. Johnson <robbat2@gentoo.org>2017-09-21 10:10:45 -0700
committerRobin H. Johnson <robbat2@gentoo.org>2017-09-21 10:10:45 -0700
commit702b37f0f6721deb1ebbad741309b4fe0e670386 (patch)
tree875630b48c74e703b29164cb04f0d8bc0f37a54b
parentsnapshots-create.sh: hoist exclusion list creation to new script, remember to... (diff)
downloadmastermirror-scripts-702b37f0f6721deb1ebbad741309b4fe0e670386.tar.gz
mastermirror-scripts-702b37f0f6721deb1ebbad741309b4fe0e670386.tar.bz2
mastermirror-scripts-702b37f0f6721deb1ebbad741309b4fe0e670386.zip
create-squashfs-snapshot: use exclusion list.
Signed-off-by: Robin H. Johnson <robbat2@gentoo.org>
-rwxr-xr-xcreate-squashfs-snapshot7
1 files changed, 7 insertions, 0 deletions
diff --git a/create-squashfs-snapshot b/create-squashfs-snapshot
index d485c63..bcdcc17 100755
--- a/create-squashfs-snapshot
+++ b/create-squashfs-snapshot
@@ -72,6 +72,12 @@ tempdir=$(mktemp -d)
trap 'rm -r "${tempdir}"' EXIT
+# Build exclusion list
+EXCLUSION_LIST="$(mktemp -p "${tempdir}" squashfs-exclude.XXXXXXXXXX)"
+"$(dirname $0)"/print-exclusion-list "${repodir}" >"${EXCLUSION_LIST}"
+mksquashfs_options+=( -ef "${EXCLUSION_LIST}" )
+
+
for algo in "${algo_LIST[@]}" ; do
ext=".${algo}.sqfs"
@@ -160,3 +166,4 @@ sha512sum -- *.sqfs *.sqdelta | \
gpg --yes -u "${signkeyid}" --clearsign \
--comment "Current: gentoo-${today}" --output sha512sum.txt.tmp -
mv sha512sum.txt.tmp sha512sum.txt
+rm -f "${EXCLUSION_LIST}"