[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#44353: guix system disk-image -t raw fails with grub-efi-bootloader
From: |
Maxim Cournoyer |
Subject: |
bug#44353: guix system disk-image -t raw fails with grub-efi-bootloader |
Date: |
Sat, 07 Nov 2020 02:09:30 -0500 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/27.1 (gnu/linux) |
Hello!
Jesse Gibbons <jgibbons2357@gmail.com> writes:
> To replicate:
> cd to a git checkout of the source code, gnu/system/examples
> The hash for my current checkout is
> d7e033b9a153a9e60f52ff64f4eb355c1c3d0a6e which is also the hash for my
> current version of guix.
> guix system disk-image -t raw lightweight-desktop.tmpl
>
> lightweight-desktop.tmpl defines an operating-system that uses
> grub-efi-bootloader, and is embedded in the info pages as an example
> operating system. Since it is lightweight, it doesn't take as long to
> build as desktop.tmpl.
>
> Expected results: guix builds the raw image just fine, and that image
> can be copied to an SD card and run on a computer with an efi
> bootloader, just like the counterpart with grub-bootloader. There is
> nothing in the documentation suggesting that this should not work by
> design.
>
> Actual results: guix fails, see attached log.
>
> -Jesse
Thank you for the report!
I'm CC'ing Mathieu as he knows this part of the code much better than I
do, having overhauled the generation of disk images recently!
Below are two patches I made while investigating this. Mathieu, does
that look like a proper fix? It allows images to be generated, but I'm
unsure whether they'd be bootable (I couldn't successfully boot either
EFI or MBR GRUB-based disk images in QEMU).
Anyway, attached are the patches.
Thank you!
Maxim
0001-build-image-Ensure-required-arguments-are-present.patch
Description: Text Data
0002-image-Only-attempt-bootloader-installation-when-supp.patch
Description: Text Data
- bug#44353: guix system disk-image -t raw fails with grub-efi-bootloader,
Maxim Cournoyer <=
- bug#44353: guix system disk-image -t raw fails with grub-efi-bootloader, Mathieu Othacehe, 2020/11/07
- bug#44353: guix system disk-image -t raw fails with grub-efi-bootloader, Bengt Richter, 2020/11/07
- bug#44353: guix system disk-image -t raw fails with grub-efi-bootloader, Maxim Cournoyer, 2020/11/07
- bug#44353: guix system disk-image -t raw fails with grub-efi-bootloader, Mathieu Othacehe, 2020/11/08
- bug#44353: [PATCH version-1.2.0 v2 1/3] image: Remove conflicting user-provided EFI file system., Maxim Cournoyer, 2020/11/11
- bug#44353: [PATCH version-1.2.0 v2 3/3] doc: Detail which bootloader get used with disk-image or vm-image., Maxim Cournoyer, 2020/11/11
- bug#44353: [PATCH version-1.2.0 v2 3/3] doc: Detail which bootloader get used with disk-image or vm-image., Mathieu Othacehe, 2020/11/12
- bug#44353: [PATCH version-1.2.0 v2 3/3] doc: Detail which bootloader get used with disk-image or vm-image., Ludovic Courtès, 2020/11/12
- bug#44353: [PATCH version-1.2.0 v2 2/3] bootloader: grub: Skip install-grub-efi when producing a disk image., Maxim Cournoyer, 2020/11/11
- bug#44353: [PATCH version-1.2.0 v2 2/3] bootloader: grub: Skip install-grub-efi when producing a disk image., Mathieu Othacehe, 2020/11/12