+2011-01-05 Vladimir Serbinenko <phcoder@gmail.com>
+
+ * util/grub-install.in: Determine ofpathname, nvsetenv and efibootmgr
+ only when needed.
+
2011-01-05 Vladimir Serbinenko <phcoder@gmail.com>
* grub-core/term/terminfo.c (grub_terminfo_readkey): Handle keys with
update_nvram=yes
-ofpathname="`which ofpathname`"
-nvsetenv="`which nvsetenv`"
-efibootmgr="`which efibootmgr 2>/dev/null || true`"
removable=no
efi_quiet=
--device-map="${device_map}" "${install_device}" || exit 1
elif [ "${target_cpu}-${platform}" = "i386-ieee1275" ] || [ "${target_cpu}-${platform}" = "powerpc-ieee1275" ]; then
if [ x"$update_nvram" = xyes ]; then
+ ofpathname="`which ofpathname`"
+ nvsetenv="`which nvsetenv`"
set "$ofpathname" dummy
if test -f "$1"; then
:
cp "${grubdir}/core.${imgext}" "${efidir}/${efi_file}"
# 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
# On Linux, we need the efivars kernel modules.