all messages for Guix-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Efraim Flashner <efraim@flashner.co.il>
To: paul <goodoldpaul@autistici.org>
Cc: help-guix@gnu.org, Vagrant Cascadian <vagrant@debian.org>
Subject: Re: Pinebook Pro boot from NVME
Date: Wed, 18 Oct 2023 13:22:16 +0300	[thread overview]
Message-ID: <ZS-x2KEpn55z02RX@3900XT> (raw)
In-Reply-To: <307431e2-37a4-9cb4-fe16-0a75f3095ec5@autistici.org>


[-- Attachment #1.1: Type: text/plain, Size: 3070 bytes --]

On Wed, Oct 18, 2023 at 12:02:12AM +0200, paul wrote:
> Hello Efraim and Vagrant,
> 
> thank you for your help so far. I still have problems booting from nvme.
> This is my guix situation:
> 
> Generation 7    Oct 15 2023 23:49:39    (current)
>   small-guix 4d7a590
>     repository URL:https://gitlab.com/orang3/small-guix
>     branch: master
>     commit: 4d7a5904c760aa4e5fd81434614da9887a0324eb
>   nonguix 14656d6
>     repository URL:https://gitlab.com/nonguix/nonguix
>     branch: master
>     commit: 14656d642dc113c73f9b144ccba366376a274a2b
>   guix e160054
>     repository URL:https://git.savannah.gnu.org/git/guix.git
>     branch: master
>     commit: e1600546b93bbc2d545730f02e071d35037a1d1a
> 
> On 10/15/23 08:22, Efraim Flashner wrote:
> > Here's a link¹ to my pinebookpro config. The short version is you need
> > to change the bootloader to use grub-efi (apparently I went with
> > grub-efi-removable-bootloader but I don't remember why)
> > 
> >    (bootloader
> >      (bootloader-configuration
> >        (bootloader grub-efi-removable-bootloader)
> >        (targets '("/boot/efi"))
> >        (keyboard-layout keyboard-layout)))
> > 
> > And you need to add /boot/efi as a vfat file system.
> > 
> >    (file-systems
> >      (cons* (file-system
> >               (device (file-system-label "Guix_image"))
> >               (mount-point "/")
> >               (type "btrfs")
> >               (options "compress=zstd,discard,space_cache=v2"))
> >             (file-system
> >               (mount-point "/boot/efi")
> >               (device (file-system-label "GNU-ESP"))
> >               (type "vfat"))
> >             %base-file-systems))
> 
> I'm attaching the configuration I used, this is the command:
> 
> $ guix system image --image-type=pinebook-pro-raw --system=aarch64-linux libre.scm
> /gnu/store/r02skdx8jq35mdhh0l8sij423ksqk0hm-disk-image
> 
> $ sudo dd if=/gnu/store/r02skdx8jq35mdhh0l8sij423ksqk0hm-disk-image of=/dev/nvme0n1 bs=4M status=progress oflag=sync
> 
> 
> but what I got after choosing nvme is in the pinebook-pro-raw.jpg I
> attached.
> 
> > ¹https://git.sr.ht/~efraim/guix-config/tree/master/item/pinebookpro.scm#L56
> 
> Then I noticed that in your configuration [0] you mention the format
> efi-raw, so I tried:
> 
> guix system image --image-type=efi-raw --system=aarch64-linux libre.scm
> 
> which gives me
> 
> guix system: error: EFI bootloader required with GPT partitioning
> 
> 
> What am I doing wrong :( ? Again, thank you for the time you are putting in
> this.
> 

There was a recent change to make sure that EFI bootloaders and GPT
partitions were paired together, but it looks like it was limited to
grub-efi and grub-efi32. Try applying this patch to guix and then using
./pre-inst-env to build the image.

-- 
Efraim Flashner   <efraim@flashner.co.il>   רנשלפ םירפא
GPG key = A28B F40C 3E55 1372 662D  14F7 41AA E7DC CA3D 8351
Confidentiality cannot be guaranteed on emails sent or received unencrypted

[-- Attachment #1.2: 0001-image-Expand-list-of-EFI-bootloaders-for-GPT-images.patch --]
[-- Type: text/plain, Size: 1681 bytes --]

From acdd01fdbfa4bfafb3efe6e4ea37103d4a3dabb5 Mon Sep 17 00:00:00 2001
Message-ID: <acdd01fdbfa4bfafb3efe6e4ea37103d4a3dabb5.1697624379.git.efraim@flashner.co.il>
From: Efraim Flashner <efraim@flashner.co.il>
Date: Wed, 18 Oct 2023 13:17:05 +0300
Subject: [PATCH] image: Expand list of EFI bootloaders for GPT images.

Reported by Paul A. Patience.

* gnu/system/image.scm (system-disk-image): Accept more bootloaders
using EFI for pairing with a GPT based partition scheme.
---
 gnu/system/image.scm | 8 +++++++-
 1 file changed, 7 insertions(+), 1 deletion(-)

diff --git a/gnu/system/image.scm b/gnu/system/image.scm
index a990c4f861..34aa459639 100644
--- a/gnu/system/image.scm
+++ b/gnu/system/image.scm
@@ -532,7 +532,13 @@ (define* (system-disk-image image
 
     (when (and (gpt-image? image)
                (not
-                (memq (bootloader-name bootloader) '(grub-efi grub-efi32))))
+                (memq (bootloader-name bootloader)
+                      (list grub-efi
+                            grub-efi32
+                            grub-efi-removable-bootloader
+                            grub-efi-netboot-bootloader
+                            grub-efi-netboot-removable-bootloader
+                            grub-mkrescue-bootloader))))
       (raise
        (formatted-message
         (G_ "EFI bootloader required with GPT partitioning"))))

base-commit: 3e132ba6bc4d65bf7f1c96f505d23f87a237b9a2
-- 
Efraim Flashner   <efraim@flashner.co.il>   רנשלפ םירפא
GPG key = A28B F40C 3E55 1372 662D  14F7 41AA E7DC CA3D 8351
Confidentiality cannot be guaranteed on emails sent or received unencrypted


[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 833 bytes --]

  reply	other threads:[~2023-10-18 10:23 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-10-07  9:42 Pinebook Pro boot from NVME paul via
2023-10-12  4:41 ` Vagrant Cascadian
2023-10-12 21:27   ` paul
2023-10-15  6:22     ` Efraim Flashner
2023-10-15 17:21       ` Vagrant Cascadian
2023-10-17 22:02       ` paul via
2023-10-18 10:22         ` Efraim Flashner [this message]
2023-10-19 12:30           ` paul via
2023-10-28 21:19     ` Vagrant Cascadian

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=ZS-x2KEpn55z02RX@3900XT \
    --to=efraim@flashner.co.il \
    --cc=goodoldpaul@autistici.org \
    --cc=help-guix@gnu.org \
    --cc=vagrant@debian.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.