GNU bug report logs -
#44353
guix system disk-image -t raw fails with grub-efi-bootloader
Previous Next
Reported by: Jesse Gibbons <jgibbons2357 <at> gmail.com>
Date: Sat, 31 Oct 2020 16:48:01 UTC
Severity: normal
Tags: patch
Done: Maxim Cournoyer <maxim.cournoyer <at> gmail.com>
Bug is archived. No further changes may be made.
Full log
Message #8 received at 44353 <at> debbugs.gnu.org (full text, mbox):
[Message part 1 (text/plain, inline)]
Hello!
Jesse Gibbons <jgibbons2357 <at> 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 (text/x-patch, attachment)]
[0002-image-Only-attempt-bootloader-installation-when-supp.patch (text/x-patch, attachment)]
This bug report was last modified 4 years and 245 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.