summaryrefslogtreecommitdiff
path: root/gnu/system/images/rock64.scm
diff options
context:
space:
mode:
authorMathieu Othacehe <othacehe@gnu.org>2022-09-07 10:49:05 +0200
committerMathieu Othacehe <othacehe@gnu.org>2022-09-07 14:24:53 +0200
commite917f1242c169f011dedd133515de5e87e267b93 (patch)
treeda5e3ac09a2892aaf272a499e284a655c702c389 /gnu/system/images/rock64.scm
parent08b8f85e086e0efe8482c6ec35ead2b6bc57a01f (diff)
system: images: Define the platform in image-types.
Running the following command where my-pine.scm contains an operating-system declaration: guix system image --image-type=pine64-raw my-pine.scm returns: guix system: error: package linux-libre-arm64-generic@5.18.19 does not support x86_64-linux That's because there's no platform defined in the pine64-raw image-type, hence the guix system image tries to build the image for the host architecture. * gnu/system/images/novena.scm (novena-image-type): Use the armv7-linux platform. * gnu/system/images/pine64.scm (pine64-image-type): Use the aarch64-linux platform. * gnu/system/images/pinebook-pro.scm (pinebook-pro-image-type): Use the aarch64-linux platform. * gnu/system/images/rock64.scm (rock64-image-type): Use the aarch64-linux platform.
Diffstat (limited to 'gnu/system/images/rock64.scm')
-rw-r--r--gnu/system/images/rock64.scm8
1 files changed, 5 insertions, 3 deletions
diff --git a/gnu/system/images/rock64.scm b/gnu/system/images/rock64.scm
index 68cb65f115..b3dcfc6193 100644
--- a/gnu/system/images/rock64.scm
+++ b/gnu/system/images/rock64.scm
@@ -54,9 +54,11 @@
(define rock64-image-type
(image-type
(name 'rock64-raw)
- (constructor (cut image-with-os
- (raw-with-offset-disk-image (expt 2 24))
- <>))))
+ (constructor (lambda (os)
+ (image
+ (inherit (raw-with-offset-disk-image (expt 2 24)))
+ (operating-system os)
+ (platform aarch64-linux))))))
(define rock64-barebones-raw-image
(image