aboutsummaryrefslogtreecommitdiff
path: root/gnu/system
diff options
context:
space:
mode:
authorMaxim Cournoyer <maxim.cournoyer@gmail.com>2020-08-26 08:11:34 -0400
committerMaxim Cournoyer <maxim.cournoyer@gmail.com>2020-08-26 09:35:57 -0400
commit6a9581741e4ee81226aeb2f1c997df76670a6aab (patch)
tree08227fb05b13bf8885fe81d78a74ab9976fa83fb /gnu/system
parentef5ddb0e1715328713c2c9edad897f9a27de692f (diff)
downloadguix-6a9581741e4ee81226aeb2f1c997df76670a6aab.tar
guix-6a9581741e4ee81226aeb2f1c997df76670a6aab.tar.gz
system: image: Do not offload image files.
Image files can be very large (multiple gigabytes), and the process of generating them is primarily I/O bound. As disk access is typically faster than network access, it makes sense build them locally. * gnu/system/image.scm (system-disk-image): Pass the #:local-build? #t parameter to computed-file calls dealing with generating image files. (system-iso9660-image): Likewise.
Diffstat (limited to 'gnu/system')
-rw-r--r--gnu/system/image.scm9
1 files changed, 6 insertions, 3 deletions
diff --git a/gnu/system/image.scm b/gnu/system/image.scm
index 36f56e237d..c1a718d607 100644
--- a/gnu/system/image.scm
+++ b/gnu/system/image.scm
@@ -266,7 +266,8 @@ used in the image."
#$output
image-root)))))
(computed-file "partition.img" image-builder
- #:options `(#:references-graphs ,inputs))))
+ #:options `(#:local-build? #t ;typically large file
+ #:references-graphs ,inputs))))
(define (partition->config partition)
;; Return the genimage partition configuration for PARTITION.
@@ -324,7 +325,8 @@ image ~a {
#~(symlink
(string-append #$image-dir "/" #$genimage-name)
#$output)
- #:options `(#:substitutable? ,substitutable?))))
+ #:options `(#:local-build? #t ;typically large file
+ #:substitutable? ,substitutable?))))
;;
@@ -401,7 +403,8 @@ used in the image. "
#:volume-id #$root-label
#:volume-uuid #$root-uuid)))))
(computed-file name builder
- #:options `(#:references-graphs ,inputs
+ #:options `(#:local-build? #t ;typically large file
+ #:references-graphs ,inputs
#:substitutable? ,substitutable?))))