Browse Source

system: image: Fix disk-image cross-compilation.

* gnu/system/image.scm (system-disk-image): Use the native version of the
helper packages (e2fsprogs, dosfstools, mtools, genimage, coreutils and
findutils).
wip-hurd-vm
Mathieu Othacehe 2 years ago
committed by Mathieu Othacehe
parent
commit
1dbd0005a1
No known key found for this signature in database GPG Key ID: 8354763531769CA6
  1. 4
      gnu/system/image.scm

4
gnu/system/image.scm

@ -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)))

Loading…
Cancel
Save