all messages for Guix-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* bug#50592: Can't guix system init with grub-efi-bootloader from system that boots using grub-bootloader
@ 2021-09-14 22:33 Zacchaeus Scheffer
       [not found] ` <handler.50592.B.163165881618357.ack@debbugs.gnu.org>
                   ` (2 more replies)
  0 siblings, 3 replies; 5+ messages in thread
From: Zacchaeus Scheffer @ 2021-09-14 22:33 UTC (permalink / raw)
  To: 50592

[-- Attachment #1: Type: text/plain, Size: 1021 bytes --]

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

[-- Attachment #2: Type: text/html, Size: 1195 bytes --]

^ permalink raw reply	[flat|nested] 5+ messages in thread

* bug#50592: Acknowledgement (Can't guix system init with grub-efi-bootloader from system that boots using grub-bootloader)
       [not found] ` <handler.50592.B.163165881618357.ack@debbugs.gnu.org>
@ 2021-09-14 22:43   ` Zacchaeus Scheffer
  0 siblings, 0 replies; 5+ messages in thread
From: Zacchaeus Scheffer @ 2021-09-14 22:43 UTC (permalink / raw)
  To: 50592

[-- Attachment #1: Type: text/plain, Size: 1346 bytes --]

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@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@gnu.org
>
> If you wish to submit further information on this problem, please
> send it to 50592@debbugs.gnu.org.
>
> Please do not send mail to help-debbugs@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@gnu.org with problems
>

[-- Attachment #2: Type: text/html, Size: 2181 bytes --]

^ permalink raw reply	[flat|nested] 5+ messages in thread

* bug#50592: Can't guix system init with grub-efi-bootloader from system that boots using grub-bootloader
  2021-09-14 22:33 bug#50592: Can't guix system init with grub-efi-bootloader from system that boots using grub-bootloader Zacchaeus Scheffer
       [not found] ` <handler.50592.B.163165881618357.ack@debbugs.gnu.org>
@ 2021-09-15  8:25 ` pelzflorian (Florian Pelz)
  2021-09-26 18:34 ` Stefan
  2 siblings, 0 replies; 5+ messages in thread
From: pelzflorian (Florian Pelz) @ 2021-09-15  8:25 UTC (permalink / raw)
  To: Zacchaeus Scheffer; +Cc: 50592

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




^ permalink raw reply	[flat|nested] 5+ messages in thread

* bug#50592: Can't guix system init with grub-efi-bootloader from system that boots using grub-bootloader
  2021-09-14 22:33 bug#50592: Can't guix system init with grub-efi-bootloader from system that boots using grub-bootloader Zacchaeus Scheffer
       [not found] ` <handler.50592.B.163165881618357.ack@debbugs.gnu.org>
  2021-09-15  8:25 ` bug#50592: Can't guix system init with grub-efi-bootloader from system that boots using grub-bootloader pelzflorian (Florian Pelz)
@ 2021-09-26 18:34 ` Stefan
  2021-10-23 14:05   ` pelzflorian (Florian Pelz)
  2 siblings, 1 reply; 5+ messages in thread
From: Stefan @ 2021-09-26 18:34 UTC (permalink / raw)
  To: 50592

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



^ permalink raw reply	[flat|nested] 5+ messages in thread

* bug#50592: Can't guix system init with grub-efi-bootloader from system that boots using grub-bootloader
  2021-09-26 18:34 ` Stefan
@ 2021-10-23 14:05   ` pelzflorian (Florian Pelz)
  0 siblings, 0 replies; 5+ messages in thread
From: pelzflorian (Florian Pelz) @ 2021-10-23 14:05 UTC (permalink / raw)
  To: 50592-done

The original wish to install to EFI NVRAM without EFI
NVRAM is impossible; workarounds have been described.  Closing.

Regards,
Florian




^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2021-10-23 14:06 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-09-14 22:33 bug#50592: Can't guix system init with grub-efi-bootloader from system that boots using grub-bootloader Zacchaeus Scheffer
     [not found] ` <handler.50592.B.163165881618357.ack@debbugs.gnu.org>
2021-09-14 22:43   ` bug#50592: Acknowledgement (Can't guix system init with grub-efi-bootloader from system that boots using grub-bootloader) Zacchaeus Scheffer
2021-09-15  8:25 ` bug#50592: Can't guix system init with grub-efi-bootloader from system that boots using grub-bootloader pelzflorian (Florian Pelz)
2021-09-26 18:34 ` Stefan
2021-10-23 14:05   ` pelzflorian (Florian Pelz)

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/guix.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.