From ed55b41564a62e08b478a53819c61605fe7c01c1 Mon Sep 17 00:00:00 2001 From: Luigi Cruz Date: Sun, 9 May 2021 13:19:31 -0600 Subject: [PATCH] Export tar.xz --- export-image/04-finalise/01-run.sh | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/export-image/04-finalise/01-run.sh b/export-image/04-finalise/01-run.sh index d7ace58..7af3226 100755 --- a/export-image/04-finalise/01-run.sh +++ b/export-image/04-finalise/01-run.sh @@ -80,6 +80,7 @@ mkdir -p "${DEPLOY_DIR}" rm -f "${DEPLOY_DIR}/${ZIP_FILENAME}${IMG_SUFFIX}.zip" rm -f "${DEPLOY_DIR}/${IMG_FILENAME}${IMG_SUFFIX}.img" +rm -f "${DEPLOY_DIR}/${ZIP_FILENAME}${IMG_SUFFIX}.img.xz" mv "$INFO_FILE" "$DEPLOY_DIR/" @@ -97,9 +98,9 @@ fi if [ "${DEPLOY_ZIP}" == "1" ]; then pushd "${STAGE_WORK_DIR}" > /dev/null - zip "${DEPLOY_DIR}/${ZIP_FILENAME}${IMG_SUFFIX}.zip" \ - "$(basename "${IMG_FILE}")" + xz -c "$(basename "${IMG_FILE}")" > "${DEPLOY_DIR}/${ZIP_FILENAME}${IMG_SUFFIX}.img.xz" popd > /dev/null + rm -f "${DEPLOY_DIR}/${IMG_FILENAME}${IMG_SUFFIX}.img" else mv "$IMG_FILE" "$DEPLOY_DIR/" fi