GNU bug report logs - #62223
[PATCH] image: Prefer gpt partition table for efi disk images

Previous Next

Package: guix-patches;

Reported by: Sergey Trofimov <sarg <at> sarg.org.ru>

Date: Thu, 16 Mar 2023 17:39:01 UTC

Severity: normal

Tags: patch

Done: Josselin Poiret <dev <at> jpoiret.xyz>

Bug is archived. No further changes may be made.

Full log


Message #11 received at 62223 <at> debbugs.gnu.org (full text, mbox):

From: Sergey Trofimov <sarg <at> sarg.org.ru>
To: 62223 <at> debbugs.gnu.org
Subject: Tested locally
Date: Wed, 22 Mar 2023 09:14:13 +0100
I have created an image and verified that it boots on qemu with 
proper bios.
Then I've baked an image of my real system configuration and used 
it to reprovision my laptop.

vm.scm
--8<---------------cut here---------------start------------->8---
...
 (bootloader
  (bootloader-configuration
   (bootloader grub-efi-bootloader)
   (targets '("/boot"))))
 (file-systems
  (cons*
   (file-system
     (mount-point "/")
     (device (file-system-label "Guix_image"))
     (type "ext4"))
   (file-system
     (mount-point "/boot")
     (device (file-system-label "GNU-ESP"))
     (type "vfat"))
   %base-file-systems))
...
--8<---------------cut here---------------end--------------->8---

testing it with:
--8<---------------cut here---------------start------------->8---
guix system image --image-type=efi-raw vm.scm

qemu-system-x86_64 \
   -bios $(guix build ovmf)/share/firmware/ovmf_x64.bin \
   -drive file=$HOME/vm.img,if=virtio
--8<---------------cut here---------------end--------------->8---




This bug report was last modified 1 year and 318 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.