FS#40126 - [grub] enable bootia32.efi in x86_64 grub package for some machines that require it

Attached to Project: Arch Linux
Opened by Brenton Taylor (brenton) - Monday, 28 April 2014, 13:11 GMT
Last edited by Tobias Powalowski (tpowa) - Thursday, 15 May 2014, 06:22 GMT
Task Type Feature Request
Category Packages: Core
Status Closed
Assigned To Tobias Powalowski (tpowa)
Ronald van Haren (pressh)
Architecture x86_64
Severity Low
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 2
Private No

Details

Description:

Some machines like the "ASUS T100" and some MACs are UEFI class 3 systems that only like to boot from a bootia32.efi loader even though their architecture is x86_64.

By applying the changes below to the grub PKGBUILD will make archlinux more compatible out of the box for these machines.

These changes were found inside the PKGBUILD of ``grub-git`` package from AUR, I believe these changes should be considered in the core grub PKGBUILD.

edit ``PKGBUILD`` add the following to the top
::

## "1" to enable IA32-EFI build in Arch x86_64, "0" to disable
_GRUB_IA32_EFI_ARCH_X64="1"

edit ``PKGBUILD`` at the bottom of ``build()`` function add
::

if [[ "${CARCH}" == "x86_64" ]] && [[ "${_GRUB_IA32_EFI_ARCH_X64}" == "1" ]]; then
msg "Build grub i386 efi stuff"
_EFI_ARCH="i386" _build_grub-efi
echo
fi

edit ``PKGBUILD`` at the bottom of ``package()`` function add
::

if [[ "${CARCH}" == "x86_64" ]] && [[ "${_GRUB_IA32_EFI_ARCH_X64}" == "1" ]]; then
msg "Package grub i386 efi stuff"
_EFI_ARCH="i386" _package_grub-efi
echo
fi


Additional info:
* package version(s): grub 1:2.02.beta2-2
* PKGBUILD attached
   PKGBUILD (8.6 KiB)
This task depends upon

Closed by  Tobias Powalowski (tpowa)
Thursday, 15 May 2014, 06:22 GMT
Reason for closing:  Fixed
Additional comments about closing:  grub-1:2.02.beta2-4
Comment by Brenton Taylor (brenton) - Monday, 28 April 2014, 23:29 GMT
Generated a patch file.

Loading...