From 702b37f0f6721deb1ebbad741309b4fe0e670386 Mon Sep 17 00:00:00 2001 From: "Robin H. Johnson" Date: Thu, 21 Sep 2017 10:10:45 -0700 Subject: create-squashfs-snapshot: use exclusion list. Signed-off-by: Robin H. Johnson --- create-squashfs-snapshot | 7 +++++++ 1 file changed, 7 insertions(+) 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}" -- cgit v1.2.3