efi_loader: correctly identify binary name
authorHeinrich Schuchardt <heinrich.schuchardt@canonical.com>
Fri, 10 Jun 2022 16:24:48 +0000 (18:24 +0200)
committerHeinrich Schuchardt <xypron.glpk@gmx.de>
Sun, 12 Jun 2022 07:17:54 +0000 (09:17 +0200)
commit3a0654ecd0d6a39406e6fe91f7a40ce589594ae9
tree909e04389bf8e5d92660b1b8045456686fb8827a
parent556a12654a3350113edbd826cbcdde4c03cb7f20
efi_loader: correctly identify binary name

Only on the sandbox the default EFI binary name (e.g. BOOTX64.EFI) must
match the host architecture.

In all other cases we must use the target architecture.

Use #elif where appropriate.

Reported-by: Vagrant Cascadian <vagrant@reproducible-builds.org>
Signed-off-by: Heinrich Schuchardt <heinrich.schuchardt@canonical.com>
include/efi_default_filename.h