All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] fix grub-install efibootmgr presence test with --removable
@ 2013-05-09 10:44 Leif Lindholm
  2013-05-09 20:01 ` Andrey Borzenkov
  2013-05-10 14:57 ` Vladimir 'φ-coder/phcoder' Serbinenko
  0 siblings, 2 replies; 7+ messages in thread
From: Leif Lindholm @ 2013-05-09 10:44 UTC (permalink / raw)
  To: grub-devel

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

When executed for an EFI target, grub-install checks for the path of
efibootmgr - however, this utility is not required (or used) when
installing to a removable media (with --removable).

However, since grub-install does "set -e", the absence of efibootmgr
on the system causes the install script to exit with an error code,
without any message, after a successful installation.

(Found because I'm doing EFI builds on my chromebook.)

Trivial patch attached.

/
    Leif

[-- Attachment #2: efibootmgr-check.patch --]
[-- Type: text/x-diff, Size: 490 bytes --]

=== modified file 'util/grub-install.in'
--- util/grub-install.in	2013-04-29 10:26:43 +0000
+++ util/grub-install.in	2013-05-09 10:23:06 +0000
@@ -754,7 +754,7 @@
     fi
 
     # Try to make this image bootable using the EFI Boot Manager, if available.
-    efibootmgr="`which efibootmgr`"
+    efibootmgr="`which efibootmgr`" || true
     if test "$removable" = no && test -n "$efi_distributor" && \
 	test -n "$efibootmgr"; then
         # On Linux, we need the efivars kernel modules.


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

end of thread, other threads:[~2013-05-11  7:54 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-05-09 10:44 [PATCH] fix grub-install efibootmgr presence test with --removable Leif Lindholm
2013-05-09 20:01 ` Andrey Borzenkov
2013-05-10 14:57 ` Vladimir 'φ-coder/phcoder' Serbinenko
2013-05-10 15:16   ` Leif Lindholm
2013-05-11  4:43   ` Andrey Borzenkov
2013-05-11  6:49     ` Vladimir 'φ-coder/phcoder' Serbinenko
2013-05-11  7:54       ` Andrey Borzenkov

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.