Use zstd for squashfs compression

zstd decompression is a lot faster than xz (default). This is especially
noticeable when starting Firefox, Chromium or VS Code for the first
time; with zstd, the startup time is cut in half. Compression time is
also faster with zstd at the default level. The downside is that the
squashfs is larger by 138 MB. This is a tradeoff, but I think it's worth
it. Increasing the zstd compression level does not significantly reduce
the size and takes much longer to compress, so I left it at the default.
This commit is contained in:
Jan Schär 2025-03-01 14:25:29 +01:00
parent e1fe68ad59
commit 2f296fa0e5
1 changed files with 1 additions and 0 deletions

View File

@ -129,6 +129,7 @@ def main():
# We need ca-certificates for fetching https packages repos.
"--debootstrap-options", "--exclude=isc-dhcp-client,isc-dhcp-common,ifupdown --include=ca-certificates" +
VARIANT_EXTRA_BOOTSTRAP.get(args.variant, ""),
"--chroot-squashfs-compression-type", "zstd",
"--loadlin", "false",
"--iso-volume", f"SOI {VARIANT_LABEL[args.variant]} @ISOVOLUME_TS@",
"--bootappend-live", "boot=live toram=filesystem.squashfs",