Archived
1
0
Fork 0
This repository has been archived on 2024-08-07. You can view files and clone it, but cannot push or open issues or pull requests.
guix/gnu
Thiago Jung Bauermann a75deb8844
system: image: Define correct docker image arch when cross building
Cross-building a docker image with:

  $ guix system image --image-type=docker --target=aarch64-linux-gnu os.scm

results in an image where the architecture declared in its config.json is
the host architecture rather than the target one.  The binaries are
correctly cross-compiled, so the image can be loaded and used despite the
warning message shown by docker:

  $ docker load -i vcal7bvsqcijchifhqdvprpd1niqh8sk-docker-image.tar.gz
  Loaded image: guix:latest
  $ docker create guix:latest
  WARNING: The requested image's platform (linux/amd64) does not match the
  detected host platform (linux/arm64/v8) and no specific platform was
  requested
  40f06aa869ed690489c4a3824a7f7721bd4bf453b85f25ac7199266939fe2fba
  $ echo $?
  0

This is fixed by passing the correct triplet to the build-docker-image
function.

* gnu/system/image.scm (system-docker-image) Add ‘image-target’ variable.
[builder]: Pass ‘#:system’ argument to ‘build-docker-image’.

Signed-off-by: Mathieu Othacehe <othacehe@gnu.org>
2022-11-04 08:46:11 +01:00
..
bootloader
build file-systems: Gracefully handle EMEDIUMTYPE in 'read-partitions'. 2022-11-03 20:00:31 +01:00
home
installer installer: Skip the backtrace page on user abort. 2022-11-02 15:52:19 +01:00
machine
packages gnu: vis: Update to 0.8. 2022-11-04 09:42:16 +08:00
services services: ganeti: OS variants can be a directory. 2022-11-03 20:00:30 +01:00
system system: image: Define correct docker image arch when cross building 2022-11-04 08:46:11 +01:00
tests
artwork.scm
bootloader.scm
ci.scm Remove now unnecessary uses of (guix grafts). 2022-10-22 01:46:55 +02:00
compression.scm
home.scm
image.scm
installer.scm installer: Skip the backtrace page on user abort. 2022-11-02 15:52:19 +01:00
local.mk gnu: upx: Update to 4.0.0. 2022-11-03 18:36:22 +01:00
machine.scm
packages.scm
services.scm
system.scm gnu: Fix typos. 2022-10-23 17:03:09 -07:00
tests.scm