emacs-bug-tracker
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[debbugs-tracker] bug#28768: closed (guix system vm Failed to install GR


From: GNU bug Tracking System
Subject: [debbugs-tracker] bug#28768: closed (guix system vm Failed to install GRUB (EFI))
Date: Thu, 19 Oct 2017 21:26:02 +0000

Your message dated Thu, 19 Oct 2017 23:25:01 +0200
with message-id <address@hidden>
and subject line Re: bug#28768: guix system vm Failed to install GRUB (EFI)
has caused the debbugs.gnu.org bug report #28768,
regarding guix system vm Failed to install GRUB (EFI)
to be marked as done.

(If you believe you have received this mail in error, please contact
address@hidden)


-- 
28768: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=28768
GNU Bug Tracking System
Contact address@hidden with problems
--- Begin Message --- Subject: guix system vm Failed to install GRUB (EFI) Date: Mon, 09 Oct 2017 22:50:32 +0300
Hello Guix,

EFI bootloader configuration causes problems to test with 'system vm'
before 'reconfigure'.

To reproduce it replace default bootloader expression with following
snippet in gnu/system/examples/vm-image.tmpl

  (bootloader (bootloader-configuration
               (bootloader grub-efi-bootloader)
               (target "/boot/efi")))

--8<---------------cut here---------------start------------->8---
[    0.909226] EXT4-fs (vda1): mounted filesystem with ordered data mode. Opts: 
(null)
installing bootloader...
/gnu/store/b1kdjsmwkphwh06gcm2ym0d0zh5wf4gc-grub-efi-2.02/sbin/grub-install: 
error: 
/gnu/store/b1kdjsmwkphwh06gcm2ym0d0zh5wf4gc-grub-efi-2.02/lib/grub/i386-pc/modinfo.sh
 doesn't exist. Please specify --target or --directory.
ERROR: In procedure scm-error:
ERROR: failed to install GRUB (EFI)

Entering a new prompt.  Type `,bt' for a backtrace or `,q' to continue.
GNU Guile 2.2.2
Copyright (C) 1995-2017 Free Software Foundation, Inc.

Guile comes with ABSOLUTELY NO WARRANTY; for details type `,show w'.
This program is free software, and you are welcome to redistribute it
under certain conditions; type `,show c' for details.

Enter `,help' for help.
scheme@(guile-user)> [    1.344109] tsc: Refined TSC clocksource calibration: 
3392.250 MHz
[    1.344677] clocksource: tsc: mask: 0xffffffffffffffff max_cycles: 
0x30e5b54dbe0, max_idle_ns: 440795272496 ns
  C-c C-c
--8<---------------cut here---------------end--------------->8---



--- End Message ---
--- Begin Message --- Subject: Re: bug#28768: guix system vm Failed to install GRUB (EFI) Date: Thu, 19 Oct 2017 23:25:01 +0200 User-agent: Gnus/5.13 (Gnus v5.13) Emacs/25.3 (gnu/linux)
Hello!

Marius Bakke <address@hidden> skribis:

> Ludovic Courtès <address@hidden> writes:

[...]

>> Another option, in the meantime is this:
>>
>> diff --git a/gnu/system/vm.scm b/gnu/system/vm.scm
>> index 273a895be..f763b430b 100644
>> --- a/gnu/system/vm.scm
>> +++ b/gnu/system/vm.scm
>> @@ -565,6 +565,14 @@ environment with the store shared with the host.  
>> MAPPINGS is a list of
>>                    user-file-systems)))
>>  
>>    (operating-system (inherit os)
>> +
>> +    ;; XXX: Until we run QEMU with UEFI support (with the OVMF firmware),
>> +    ;; force the traditional i386/BIOS method.
>> +    ;; See <https://bugs.gnu.org/28768>.
>> +    (bootloader (bootloader-configuration
>> +                  (bootloader grub-bootloader)
>> +                  (target "/dev/vda")))
>> +
>>      (initrd (lambda (file-systems . rest)
>>                (apply base-initrd file-systems
>>                       #:volatile-root? #t
>>
>> That’s what I do manually anyway.
>>
>> WDYT?  If that’s fine with you, I can commit it.
>
> LGTM!

Pushed as 9b396c0cabb086746cbe4ec20d4ae0d79962d758 (along with the
missing #:use-module clause that Oleg reported.)

I’m closing this bug.  We can create a new issue when we add support for
UEFI in VMs.

Oleg Pykhalov <address@hidden> skribis:

> But I got another issue, not related to Grub.
>
> Loops in QEMU:
>
>
>     waiting for partition 'magnolia-data' to appear
>
>     failed to start service 'file-systems'
>

This is expected: there’s no partition with that label in the VM.

You have to comment out the ‘file-system’ declaration because it doesn’t
make sense inside the VM.  Perhaps ‘virtualized-operating-system’ could
do it automatically as well, not sure.

HTH,
Ludo’.


--- End Message ---

reply via email to

[Prev in Thread] Current Thread [Next in Thread]