aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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}"