From: rendaw <7e9wc56emjakcm@s.rendaw.me>
To: 35380@debbugs.gnu.org
Subject: bug#35380: disk-image fails to install efi grub
Date: Tue, 23 Apr 2019 01:06:15 +0900 [thread overview]
Message-ID: <0935773a-1e21-9576-d569-f97e79ed13dd@s.rendaw.me> (raw)
Package: guix
Version: 0.16.0
This might be 2 bugs.
I ran `guix pull` a few hours ago.
I have a minimal system configuration:
```
(use-modules (gnu))
(operating-system
(host-name "min1")
(timezone "UTC")
(locale "en_US.utf8")
(bootloader (bootloader-configuration
(bootloader grub-bootloader)
))
(file-systems (cons
(file-system
(device (file-system-label "abcdefghijk"))
(mount-point "/")
(type "ext4"))
%base-file-systems))
)
```
This boots fine with:
```
qemu-system-x86_64 -m 1024 testimage
```
(after copying to testimage and doing chmod u+w)
Changing it to use grub-efi-bootloader results in this error during build:
```
installing bootloader...
/gnu/store/6zkimxsfyn0gdc7p4ikxlrhilpnpblsi-grub-efi-2.02/sbin/grub-install:
error:
/gnu/store/6zkimxsfyn0gdc7p4ikxlrhilpnpblsi-grub-efi-2.02/lib/grub/i386-pc/modinfo.sh
doesn't exist. Please spe.
Backtrace:
2 (primitive-load "/gnu/store/mkbilylx3l6c2y9pdckdiibcpwb?")
In ./gnu/build/vm.scm:
534:6 1 (initialize-hard-disk "/dev/vda" #:bootloader-package _ ?)
In unknown file:
0 (scm-error misc-error #f "~A" ("failed to install GRU?") ?)
ERROR: In procedure scm-error:
failed to install GRUB (EFI)
boot program
'/gnu/store/0m2ap3d4c9gl7chmsrh7ci7i5gy4bbl0-linux-vm-loader'
terminated, rebooting
[ 184.005459] Unregister pv shared memory for cpu 0
[ 184.006818] reboot: Restarting system
[ 184.007498] reboot: machine restart
successfully built
/gnu/store/57smyxccd3965dzirpcjfdkljbv9mrpy-disk-image.drv
/gnu/store/f90acaac9wvg61i6j3mgjfjvyd5p1yzg-disk-image
```
Bug 1: Even though there's a fairly serious error (bootloader failed to
install) a broken image is produced and it exits with a success status code.
Running with the same command above, qemu halts saying the drive isn't
bootable, trying floppy disks, etc.
Bug 2: So is it appears disk-image won't build with an EFI bootloader.
I'm guessing that qemu is run with a bios boot image here, which is why
grub's using i386-pc.
I'm building the image for a UEFI machine and I don't want to disable
UEFI so this is a blocker.
next reply other threads:[~2019-04-22 16:07 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-04-22 16:06 rendaw [this message]
[not found] ` <handler.35380.B.155594918611499.ack@debbugs.gnu.org>
2019-04-22 17:11 ` bug#35380: Acknowledgement (disk-image fails to install efi grub) rendaw
2019-04-25 8:44 ` bug#35380: disk-image fails to install efi grub Ludovic Courtès
2019-04-25 10:27 ` rendaw
2019-05-01 20:19 ` Ludovic Courtès
2019-05-02 9:05 ` Gábor Boskovits
2019-05-02 15:16 ` Ludovic Courtès
2019-05-02 22:17 ` Marius Bakke
2019-05-03 13:18 ` rendaw
2019-05-03 15:10 ` Marius Bakke
2019-05-04 3:42 ` rendaw
2019-05-04 14:34 ` Marius Bakke
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
List information: https://guix.gnu.org/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=0935773a-1e21-9576-d569-f97e79ed13dd@s.rendaw.me \
--to=7e9wc56emjakcm@s.rendaw.me \
--cc=35380@debbugs.gnu.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 public inbox
https://git.savannah.gnu.org/cgit/guix.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).