GNU bug report logs - #50592
Can't guix system init with grub-efi-bootloader from system that boots using grub-bootloader

Previous Next

Package: guix;

Reported by: Zacchaeus Scheffer <zaccysc <at> gmail.com>

Date: Tue, 14 Sep 2021 22:34:02 UTC

Severity: normal

Done: "pelzflorian (Florian Pelz)" <pelzflorian <at> pelzflorian.de>

Bug is archived. No further changes may be made.

To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 50592 in the body.
You can then email your comments to 50592 AT debbugs.gnu.org in the normal way.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to bug-guix <at> gnu.org:
bug#50592; Package guix. (Tue, 14 Sep 2021 22:34:02 GMT) Full text and rfc822 format available.

Acknowledgement sent to Zacchaeus Scheffer <zaccysc <at> gmail.com>:
New bug report received and forwarded. Copy sent to bug-guix <at> gnu.org. (Tue, 14 Sep 2021 22:34:02 GMT) Full text and rfc822 format available.

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

From: Zacchaeus Scheffer <zaccysc <at> gmail.com>
To: bug-guix <at> gnu.org
Subject: Can't guix system init with grub-efi-bootloader from system that
 boots using grub-bootloader
Date: Tue, 14 Sep 2021 18:33:17 -0400
[Message part 1 (text/plain, inline)]
Hi Guix!

I'm trying to install guix to a new drive using my main machine which boots
using grub-bootloader (legacy bios).  I want to put grub-efi-bootloader
(EFI) on the new drive install (for use on another computer).  However, the
install fails when running grub-install.  The full output at the end is:

copying to '/mnt/jake'...
populating '/mnt/jake'...
guix system: error:
'/gnu/store/w8v5d1i6xfqlpj78w89jg1x7f8dchh4k-grub-efi-2.06/sbin/grub-install
--boot-directory /mnt/jake/boot --bootloader-id=Guix --efi-directory
/boot/efi' exited with status 1; output follows:


/gnu/store/w8v5d1i6xfqlpj78w89jg1x7f8dchh4k-grub-efi-2.06/sbin/grub-install:
error:
/gnu/store/w8v5d1i6xfqlpj78w89jg1x7f8dchh4k-grub-efi-2.06/lib/grub/i386-pc/modinfo.sh
doesn't exist. Please specify --target or --directory.

I'm not sure if the fact that I'm currently booted in legacy bios mode is
important, but the problem persists after a guix pull && guix
system reconfigure, and I doubt grub-efi is broken for everyone.

Thanks,
zacchae
[Message part 2 (text/html, inline)]

Information forwarded to bug-guix <at> gnu.org:
bug#50592; Package guix. (Tue, 14 Sep 2021 22:44:01 GMT) Full text and rfc822 format available.

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

From: Zacchaeus Scheffer <zaccysc <at> gmail.com>
To: 50592 <at> debbugs.gnu.org
Subject: Re: bug#50592: Acknowledgement (Can't guix system init with
 grub-efi-bootloader from system that boots using grub-bootloader)
Date: Tue, 14 Sep 2021 18:43:05 -0400
[Message part 1 (text/plain, inline)]
I should probably give some more details.  Here is the bootloader config
I'm using

 (bootloader
  (bootloader-configuration
   (bootloader grub-efi-bootloader)
   (targets (list "/boot/efi"))
   (keyboard-layout keyboard-layout)))

My mounts look like:
/dev/mapper/jake /mnt/jake # with -o subvol=guix
/dev/mapper/jake /mnt/jake/swap # with -o subvol=swap
/dev/sdb2 /mnt/jake/boot/efi

I've been using the same system config without problem, and just changed
the bootloader config to the above

-zacchaeus

On Tue, Sep 14, 2021 at 6:34 PM GNU bug Tracking System <
help-debbugs <at> gnu.org> wrote:

> Thank you for filing a new bug report with debbugs.gnu.org.
>
> This is an automatically generated reply to let you know your message
> has been received.
>
> Your message is being forwarded to the package maintainers and other
> interested parties for their attention; they will reply in due course.
>
> Your message has been sent to the package maintainer(s):
>  bug-guix <at> gnu.org
>
> If you wish to submit further information on this problem, please
> send it to 50592 <at> debbugs.gnu.org.
>
> Please do not send mail to help-debbugs <at> gnu.org unless you wish
> to report a problem with the Bug-tracking system.
>
> --
> 50592: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=50592
> GNU Bug Tracking System
> Contact help-debbugs <at> gnu.org with problems
>
[Message part 2 (text/html, inline)]

Information forwarded to bug-guix <at> gnu.org:
bug#50592; Package guix. (Wed, 15 Sep 2021 08:26:02 GMT) Full text and rfc822 format available.

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

From: "pelzflorian (Florian Pelz)" <pelzflorian <at> pelzflorian.de>
To: Zacchaeus Scheffer <zaccysc <at> gmail.com>
Cc: 50592 <at> debbugs.gnu.org
Subject: Re: bug#50592: Can't guix system init with grub-efi-bootloader from
 system that boots using grub-bootloader
Date: Wed, 15 Sep 2021 10:25:21 +0200
Hello Zacchaeus.

On Tue, Sep 14, 2021 at 06:33:17PM -0400, Zacchaeus Scheffer wrote:
> I want to put grub-efi-bootloader
> (EFI) on the new drive install (for use on another computer).

With ordinary configuration, I believe installing GRUB EFI for use on
another computer is impossible, because grub install for EFI wants to
store boot information on the main board’s NVRAM, not on the disk.
Except when installing on a USB flash drive using the --removable
option, that is.

You could try manually executing the command

On Tue, Sep 14, 2021 at 06:33:17PM -0400, Zacchaeus Scheffer wrote:
> '/gnu/store/w8v5d1i6xfqlpj78w89jg1x7f8dchh4k-grub-efi-2.06/sbin/grub-install
> --boot-directory /mnt/jake/boot --bootloader-id=Guix --efi-directory
> /boot/efi'

as if you were installing to a USB flash drive, by adding --removable
and otherwise using exactly the same command.  It might work, since
you already have installed the system successfully except for the
bootloader.

This is in imitation of what the GRUB manual says:
> For removable installs you have to use --removable and specify both --boot-directory and --efi-directory: 
>
> # grub-install --efi-directory=/mnt/usb --boot-directory=/mnt/usb/boot --removable

I’m not sure enough of what can be done, but I believe this bug is a
WONTFIX.  What do others think?

Regards,
Florian




Information forwarded to bug-guix <at> gnu.org:
bug#50592; Package guix. (Sun, 26 Sep 2021 18:35:01 GMT) Full text and rfc822 format available.

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

From: Stefan <stefan-guix <at> vodafonemail.de>
To: 50592 <at> debbugs.gnu.org
Subject: Can't guix system init with grub-efi-bootloader from system that
 boots using grub-bootloader
Date: Sun, 26 Sep 2021 20:34:32 +0200
Hi!

The solution for this is already available in the patch series in <http://issues.guix.gnu.org/48314>. The new grub-efi-netboot-removable-bootloader can be used for this.

Technically there is no big difference between an installation to boot from network or from local storage. For booting from network two symlinks are needed, which can’t be created on an EFI System Partition with its FAT file system. In the later case a small intermediate grub.cfg is created, which allows booting from local storage.


Bye

Stefan



Reply sent to "pelzflorian (Florian Pelz)" <pelzflorian <at> pelzflorian.de>:
You have taken responsibility. (Sat, 23 Oct 2021 14:06:01 GMT) Full text and rfc822 format available.

Notification sent to Zacchaeus Scheffer <zaccysc <at> gmail.com>:
bug acknowledged by developer. (Sat, 23 Oct 2021 14:06:02 GMT) Full text and rfc822 format available.

Message #19 received at 50592-done <at> debbugs.gnu.org (full text, mbox):

From: "pelzflorian (Florian Pelz)" <pelzflorian <at> pelzflorian.de>
To: 50592-done <at> debbugs.gnu.org
Subject: Re: bug#50592: Can't guix system init with grub-efi-bootloader from
 system that boots using grub-bootloader
Date: Sat, 23 Oct 2021 16:05:40 +0200
The original wish to install to EFI NVRAM without EFI
NVRAM is impossible; workarounds have been described.  Closing.

Regards,
Florian




bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Sun, 21 Nov 2021 12:24:09 GMT) Full text and rfc822 format available.

This bug report was last modified 2 years and 128 days ago.

Previous Next


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