[systemd-devel] [PATCH 5/5] Auto detect both x64 and ia32 boot*.efi payloads

Kay Sievers kay at vrfy.org
Wed Aug 21 11:59:55 PDT 2013


On Wed, Aug 21, 2013 at 8:13 PM, Darren Hart <dvhart at linux.intel.com> wrote:
> The EFI specification documents /EFI/BOOT/bootx64.efi for x86_64
> machines and /EFI/BOOT/bootia32.efi for ia32 machines. Update the auto
> detection to allow for both.
>
> Signed-off-by: Darren Hart <dvhart at linux.intel.com>
> ---
>  src/efi/gummiboot.c | 5 ++++-
>  1 file changed, 4 insertions(+), 1 deletion(-)
>
> diff --git a/src/efi/gummiboot.c b/src/efi/gummiboot.c
> index 9f2f31d..32e6f32 100644
> --- a/src/efi/gummiboot.c
> +++ b/src/efi/gummiboot.c
> @@ -2199,7 +2199,10 @@ EFI_STATUS efi_main(EFI_HANDLE image, EFI_SYSTEM_TABLE *sys_table) {
>          config_entry_add_loader_auto(&config, loaded_image->DeviceHandle, root_dir, loaded_image_path,
>                                       L"auto-efi-shell", 's', L"EFI Shell", L"\\shellx64.efi");
>          config_entry_add_loader_auto(&config, loaded_image->DeviceHandle, root_dir, loaded_image_path,
> -                                     L"auto-efi-default", '\0', L"EFI Default Loader", L"\\EFI\\BOOT\\BOOTX64.EFI");
> +                                     L"auto-efi-default-64", '\0', L"EFI Default Loader (x64)", L"\\EFI\\BOOT\\BOOTX64.EFI");
> +        config_entry_add_loader_auto(&config, loaded_image->DeviceHandle, root_dir, loaded_image_path,
> +                                     L"auto-efi-default-32", '\0', L"EFI Default Loader (ia32)", L"\\EFI\\BOOT\\BOOTIA32.EFI");
> +

Does it make sense to show both? Can EFI even start the non-native one?

Shouldn't we just look for the "native" one, by composing the string
at compile time?

Kay


More information about the systemd-devel mailing list