diff options
author | Maxim Cournoyer <maxim.cournoyer@gmail.com> | 2025-04-30 16:23:52 +0900 |
---|---|---|
committer | Maxim Cournoyer <maxim.cournoyer@gmail.com> | 2025-04-30 17:14:24 +0900 |
commit | ca8a0f4d1bca745f34c5b8120b9f346eee79ff14 (patch) | |
tree | 36b810d9da57c8a7e7149d8ba6a5af2adbc17936 | |
parent | b130a868dc608fcf0196f4cea269414e53656545 (diff) | |
download | guix-ca8a0f4d1bca745f34c5b8120b9f346eee79ff14.tar.gz guix-ca8a0f4d1bca745f34c5b8120b9f346eee79ff14.zip |
image: Honor parallel job count for the number of qemu-img co-routines used.
This doesn't seem to change anything currently (the default is 8). Perhaps
useful in the future, for example if the compressor used by qemu-img starts
honoring it.
* gnu/build/image.scm (convert-disk-image): Specify the '-m' option.
Change-Id: Ia288c85af8a0621d61cf6b9f0d3f73f5a3026d66
-rw-r--r-- | gnu/build/image.scm | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/gnu/build/image.scm b/gnu/build/image.scm index 2332b72b17..e6cc2d0640 100644 --- a/gnu/build/image.scm +++ b/gnu/build/image.scm @@ -178,7 +178,10 @@ ROOT directory to populate the image." (case format ((compressed-qcow2) (invoke "qemu-img" "convert" "-c" "-f" "raw" - "-O" "qcow2" image output)) + ;; The maximum number of co-routines is 16. + "-m" (number->string (min 16 (parallel-job-count))) + "-O" "qcow2" + image output)) (else (copy-file image output)))) |