mirror of
https://git.proxmox.com/git/grub2
synced 2025-08-08 11:43:54 +00:00
* util/grub-install.in: Handle efibootmgr presence check.
Reported by: Leif Lindholm.
This commit is contained in:
parent
0dc11c08d7
commit
30b03dc22e
@ -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>
|
2013-05-10 Vladimir Serbinenko <phcoder@gmail.com>
|
||||||
|
|
||||||
* grub-core/commands/testspeed.c: Reuse formatting string to decrease
|
* grub-core/commands/testspeed.c: Reuse formatting string to decrease
|
||||||
|
@ -754,9 +754,21 @@ elif [ x"$grub_modinfo_platform" = xefi ]; then
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
# Try to make this image bootable using the EFI Boot Manager, if available.
|
# Try to make this image bootable using the EFI Boot Manager, if available.
|
||||||
efibootmgr="`which efibootmgr`"
|
if test "$removable" = no; then
|
||||||
if test "$removable" = no && test -n "$efi_distributor" && \
|
|
||||||
test -n "$efibootmgr"; 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.
|
# On Linux, we need the efivars kernel modules.
|
||||||
case "$host_os" in
|
case "$host_os" in
|
||||||
linux*)
|
linux*)
|
||||||
|
Loading…
Reference in New Issue
Block a user