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 <efr...@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
From acdd01fdbfa4bfafb3efe6e4ea37103d4a3dabb5 Mon Sep 17 00:00:00 2001 Message-ID: <acdd01fdbfa4bfafb3efe6e4ea37103d4a3dabb5.1697624379.git.efr...@flashner.co.il> From: Efraim Flashner <efr...@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 <efr...@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
signature.asc
Description: PGP signature