]> git.ipfire.org Git - thirdparty/grub.git/commitdiff
Old macs search for boot.efi rather than for bootia32.efi.
authorVladimir 'phcoder' Serbinenko <phcoder@gmail.com>
Tue, 29 Mar 2011 22:05:25 +0000 (00:05 +0200)
committerVladimir 'phcoder' Serbinenko <phcoder@gmail.com>
Tue, 29 Mar 2011 22:05:25 +0000 (00:05 +0200)
* util/grub-install.in: Copy bootia32.efi to boot.efi.
* util/grub-mkrescue.in: Likewise.
Suggested by: Peter Jones.

ChangeLog
util/grub-install.in
util/grub-mkrescue.in

index 073543c1630eb0a3242efeecb71a60a86332bcd3..661f085027bb63bd6cc976388934f2a4bad6d294 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,11 @@
+2011-03-29  Vladimir Serbinenko  <phcoder@gmail.com>
+
+       Old macs search for boot.efi rather than for bootia32.efi.
+
+       * util/grub-install.in: Copy bootia32.efi to boot.efi.
+       * util/grub-mkrescue.in: Likewise.
+       Suggested by: Peter Jones.
+
 2011-03-29  Vladimir Serbinenko  <phcoder@gmail.com>
 
        * util/grub.d/20_linux_xen.in: Accept old-style xen kernels.
index b4a4b3f26a40aeafcd4039f4e324e1359c58d72b..4e78dfadb37c5f872249245ec7f25400ccfe319a 100644 (file)
@@ -620,6 +620,10 @@ elif [ "${target_cpu}-${platform}" = "i386-ieee1275" ] || [ "${target_cpu}-${pla
     fi
 elif [ x"$platform" = xefi ]; then
     cp "${grubdir}/core.${imgext}" "${efidir}/${efi_file}"
+    # For old macs. Suggested by Peter Jones.
+    if [ x$target_cpu = xi386 ]; then
+       cp "${grubdir}/core.${imgext}" "${efidir}/boot.efi"
+    fi
 
     # Try to make this image bootable using the EFI Boot Manager, if available.
     efibootmgr="`which efibootmgr`"
index 690bddb3071635ce66b668319ea6e945c88e8c77..455534009fc731446dab173a280bc30a59f57c62 100644 (file)
@@ -286,6 +286,10 @@ if test -e "${efi64_dir}" || test -e "${efi32_dir}"; then
     make_image "${efi64_dir}" x86_64-efi "${efi_dir}"/efi/boot/bootx64.efi ""
     # build bootia32.efi
     make_image "${efi32_dir}" i386-efi "${efi_dir}"/efi/boot/bootia32.efi ""
+    if [ -e "${efi_dir}"/efi/boot/bootia32.efi ]; then
+        # For old macs. Suggested by Peter Jones.
+       cp "${efi_dir}"/efi/boot/bootia32.efi "${efi_dir}"/efi/boot/boot.efi
+    fi
 
     mformat -C -f 2880 -L 16 -i "${iso9660_dir}"/efi.img ::
     mcopy -s -i "${iso9660_dir}"/efi.img ${efi_dir}/efi ::/