From 77ba548a735192bd610455ec12b38714b25e9998 Mon Sep 17 00:00:00 2001 From: Jakob Lechner Date: Fri, 24 Jan 2020 21:37:57 +0100 Subject: [PATCH] squashfs: Use zstd instead of lzo --- .gitlab-ci.yml | 4 ++-- packer/debian-buster.yaml | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index f45b116..6645dda 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -91,7 +91,7 @@ security_scanner: squashfs_featurebranch: <<: *squashfs_template variables: - COMPRESSION_LEVEL: 5 + COMPRESSION_LEVEL: 4 except: variables: - $task == "security-scanner" @@ -101,7 +101,7 @@ squashfs_featurebranch: squashfs_master: <<: *squashfs_template variables: - COMPRESSION_LEVEL: 7 + COMPRESSION_LEVEL: 15 only: refs: - master diff --git a/packer/debian-buster.yaml b/packer/debian-buster.yaml index 0b0d1f8..9a765d7 100644 --- a/packer/debian-buster.yaml +++ b/packer/debian-buster.yaml @@ -90,7 +90,7 @@ provisioners: - squashfs_content="$(find / -mindepth 1 -maxdepth 1 | grep -vE '^/(proc|sys|tmp|[.]dockerenv|packer-files)$')" - > mksquashfs $squashfs_content /tmp/extra/* '/tmp/images/{{user `squashfs_file`}}' - -comp lzo + -comp zstd -Xcompression-level {{user `compression_level`}} -ef /tmp/ignore_files type: shell