From 2f296fa0e5da718acf352e4cdc56e069eeb02007 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jan=20Sch=C3=A4r?= Date: Sat, 1 Mar 2025 14:25:29 +0100 Subject: [PATCH] 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. --- os/build.py | 1 + 1 file changed, 1 insertion(+) diff --git a/os/build.py b/os/build.py index c84070d..6ba41fd 100755 --- a/os/build.py +++ b/os/build.py @@ -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",