unofficial mirror of guix-devel@gnu.org 
 help / color / mirror / code / Atom feed
* GRUB EFI installation breakage
@ 2017-08-22 13:34 Ludovic Courtès
  2017-08-22 14:47 ` Efraim Flashner
  2017-08-22 20:00 ` Marius Bakke
  0 siblings, 2 replies; 5+ messages in thread
From: Ludovic Courtès @ 2017-08-22 13:34 UTC (permalink / raw)
  To: Andy Wingo; +Cc: guix-devel

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

Hello,

To reconfigure my system on UEFI, I had to apply this patch:


[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: Type: text/x-patch, Size: 474 bytes --]

modified   gnu/bootloader/grub.scm
@@ -401,7 +401,8 @@ submenu \"GNU system, old configurations...\" {~%")
         ;; root partition.
         (setenv "GRUB_ENABLE_CRYPTODISK" "y")
         (unless (zero? (system* grub-install "--boot-directory" install-dir
-                                "--efi-directory" efi-dir))
+                                ;; "--efi-directory" efi-dir
+                                ))
           (error "failed to install GRUB (EFI)")))))
 

[-- Attachment #3: Type: text/plain, Size: 731 bytes --]


Before that ‘grub-install’ would fail because ‘efi-dir’ would actually
be “/dev/sda”, which is what I have in the ‘device’ field of
‘grub-configuration’.

Removing the “--efi-directory” solves the problem because ‘grub-install’
automatically determines that the EFI directory is mounted at /boot/efi.

I think 2941b347b664a3d3114de0ac95e28db78db66144 is bogus because it
assumes that the second argument of the gexp’d lambda is ‘efi-dir’,
where in fact it is the ‘device’ field of the bootloader config.

So what is the preferred fix?  Simply remove “--efi-directory” like I
did above, and rename ‘efi-dir’ to ‘device’ to avoid the ambiguity?
Thoughts?

Ludo’.

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

end of thread, other threads:[~2017-08-23  9:14 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-08-22 13:34 GRUB EFI installation breakage Ludovic Courtès
2017-08-22 14:47 ` Efraim Flashner
2017-08-22 20:00 ` Marius Bakke
2017-08-22 22:25   ` Ludovic Courtès
2017-08-23  9:14     ` Andy Wingo

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).