aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMaxim Cournoyer <maxim.cournoyer@gmail.com>2025-04-30 16:38:15 +0900
committerMaxim Cournoyer <maxim.cournoyer@gmail.com>2025-04-30 17:14:24 +0900
commita0941c14ef185d3d177ad132385992c1b7d36818 (patch)
tree3d1765982564fbbcb420e9cbb9f702638981193f
parentca8a0f4d1bca745f34c5b8120b9f346eee79ff14 (diff)
downloadguix-a0941c14ef185d3d177ad132385992c1b7d36818.tar.gz
guix-a0941c14ef185d3d177ad132385992c1b7d36818.zip
image: Create zstd-compressed qcow2 images.
This should be about twice as fast as the default zlib compressor used for qcow2, and potentially multi-thread aware given some improvements to qemu-img in the future (zstd supports its but it's not currently used by QEMU). * gnu/build/image.scm (convert-disk-image): Specify 'compression_type=zstd' option. Change-Id: Ie9c66f0c13e789ec863c95a5e549f035b6a17bf9
-rw-r--r--gnu/build/image.scm1
1 files changed, 1 insertions, 0 deletions
diff --git a/gnu/build/image.scm b/gnu/build/image.scm
index e6cc2d0640..2eb2ebd217 100644
--- a/gnu/build/image.scm
+++ b/gnu/build/image.scm
@@ -181,6 +181,7 @@ ROOT directory to populate the image."
;; The maximum number of co-routines is 16.
"-m" (number->string (min 16 (parallel-job-count)))
"-O" "qcow2"
+ "-o" "compression_type=zstd"
image output))
(else
(copy-file image output))))