all messages for Guix-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Mathieu Othacehe <othacehe@gnu.org>
To: Andreas Enge <andreas@enge.fr>
Cc: help-guix@gnu.org
Subject: Re: guix system disk-image failure aarch64 -> armhf
Date: Wed, 09 Sep 2020 11:11:18 +0200	[thread overview]
Message-ID: <87ft7r8gcp.fsf@gnu.org> (raw)
In-Reply-To: <20200909080445.GA15009@jurong> (Andreas Enge's message of "Wed,  9 Sep 2020 10:04:45 +0200")


Hello Andreas,

> The appearance of "efi" and "grub" is suspicious.
>
> I do have this in my config:
>   (bootloader (bootloader-configuration
>                (bootloader u-boot-novena-bootloader)
>                (target "/dev/mmcblk0")))
> So there is no trace of grub or efi in it. Does anyone know what is happening?

The default Guix System disk image is an x86 compatible disk-image with
an EFI partition so that it can be booted on UEFI compatible
systems. That's why you see occurrences of "grub" and "efi".

That does not really explain the error though, but that's another
issue. The pending patch here[1], will hopefully help users specify
their target image. It means that you should be able to write:

--8<---------------cut here---------------start------------->8---
guix system disk-image -t novena config.scm
--8<---------------cut here---------------end--------------->8---

or,

--8<---------------cut here---------------start------------->8---
guix system disk-image -t raw-image config.scm
--8<---------------cut here---------------end--------------->8---

Until then, running something like:

--8<---------------cut here---------------start------------->8---
(use-modules (gnu)
             (gnu image)
             (gnu system image)
             (guix))

(define my-os
  (primitive-load "/home/mathieu/guix/gnu/system/examples/bare-bones.tmpl"))

(define my-image
  (image
   (format 'disk-image)
   (partitions (list root-partition))
   (operating-system my-os)))

(run-with-store (open-connection)
  (mlet* %store-monad
      ((drv     (lower-object (system-image my-image "armhf-linux")))
       (build   (built-derivations (list drv))))
    (return #t)))
--8<---------------cut here---------------end--------------->8---

should get you closer.

Thanks,

Mathieu

[1]: https://issues.guix.gnu.org/42634


  reply	other threads:[~2020-09-09  9:11 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-09-09  8:04 guix system disk-image failure aarch64 -> armhf Andreas Enge
2020-09-09  9:11 ` Mathieu Othacehe [this message]
2020-09-09  9:14   ` Mathieu Othacehe
2020-09-14  9:32   ` Andreas Enge
2020-09-14 13:24     ` Efraim Flashner
2020-09-14 17:18       ` Andreas Enge
2020-09-17 12:13         ` Mathieu Othacehe
2020-09-17 15:01           ` Andreas Enge

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87ft7r8gcp.fsf@gnu.org \
    --to=othacehe@gnu.org \
    --cc=andreas@enge.fr \
    --cc=help-guix@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/guix.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.