* util/grub-install.in: Handle efibootmgr presence check.

Reported by: Leif Lindholm.
This commit is contained in:
Vladimir 'phcoder' Serbinenko 2013-05-10 16:58:25 +02:00
parent 0dc11c08d7
commit 30b03dc22e
2 changed files with 20 additions and 3 deletions

View file

@ -1,3 +1,8 @@
2013-05-10 Vladimir Serbinenko <phcoder@gmail.com>
* util/grub-install.in: Handle efibootmgr presence check.
Reported by: Leif Lindholm.
2013-05-10 Vladimir Serbinenko <phcoder@gmail.com>
* grub-core/commands/testspeed.c: Reuse formatting string to decrease

View file

@ -754,9 +754,21 @@ elif [ x"$grub_modinfo_platform" = xefi ]; then
fi
# Try to make this image bootable using the EFI Boot Manager, if available.
efibootmgr="`which efibootmgr`"
if test "$removable" = no && test -n "$efi_distributor" && \
test -n "$efibootmgr"; then
if test "$removable" = no; then
efibootmgr="`which efibootmgr`" || {
# TRANSLATORS: This message is shown when required executable `%s'
# isn't found
gettext_printf "%s: Not found.\n" "efibootmgr" 1>&2
exit 1
}
test -n "$efi_distributor" || {
gettext "EFI distributor id isn't specified." 1>&2
echo 1>&2
exit 1
}
# On Linux, we need the efivars kernel modules.
case "$host_os" in
linux*)