Comment 51 for bug 1025555

Revision history for this message
Jonathan (miareggeti) wrote : Re: Ubuntu i386 images are not compatible with 32-bit UEFI computers

Originally posted by Phillip Susi (psusi):

> The installer doesn't know the machine is UEFI capable if it was booted in legacy mode. Also they can install in legacy mode and convert later; it is just booting the installer that does not work in uefi mode.

*****
Please read this (Bug #105094940):

> So if the liveCD/USB is booted in UEFI mode (= /sys/firmware/efi exists when running Ubiquity), it does not always imply that the UEFI firmware is setup to boot the HDD in UEFI mode.

> 1) if there is an ESP with Windows EFI file, and no Legacy Windows boot files (bootmgr+boot/BCD), the firmware is setup to boot the HDD in UEFI mode, so Ubiquity must install grub-efi

Either way, ubiquity looks to see if /sys/firmware/efi exists in the live media. It should look for a FAT32 partition (with a boot flag), AKA an EFI partition, mount it, and check for any EFI files.

If efi-exists, then un-mount it, install grub-efi in the target system, and add a line in FStab for the efi-partition.
If no efi files are found, or if there is no EFI partition, install grub-pc.