system: image: Fix disk-image cross-compilation.
authorMathieu Othacehe <m.othacehe@gmail.com>
Wed, 20 May 2020 14:22:17 +0000 (16:22 +0200)
committerMathieu Othacehe <othacehe@gnu.org>
Tue, 26 May 2020 08:00:08 +0000 (10:00 +0200)
* gnu/system/image.scm (system-disk-image): Use the native version of the
helper packages (e2fsprogs, dosfstools, mtools, genimage, coreutils and
findutils).

gnu/system/image.scm

index adc2b3c..6b5a36f 100644 (file)
@@ -232,7 +232,7 @@ used in the image."
              (type (partition-file-system partition))
              (image-builder
               (with-imported-modules*
-               (let ((inputs '#$(list e2fsprogs dosfstools mtools)))
+               (let ((inputs '#+(list e2fsprogs dosfstools mtools)))
                  (set-path-environment-variable "PATH" '("bin" "sbin") inputs)
                  (make-partition-image #$(partition->gexp partition)
                                        #$output
@@ -275,7 +275,7 @@ image ~a {
   (let* ((substitutable? (image-substitutable? image))
          (builder
           (with-imported-modules*
-           (let ((inputs '#$(list genimage coreutils findutils)))
+           (let ((inputs '#+(list genimage coreutils findutils)))
              (set-path-environment-variable "PATH" '("bin" "sbin") inputs)
              (genimage #$(image->genimage-cfg image) #$output))))
          (image-dir (computed-file "image-dir" builder)))