Fix UEFI boot entry creation for aarch64

Diskimage-builder installs grub with option '--removable'[1], thus for
aarch64 no 'grubaa64.efi' file in efi directory only got 'BOOTAA64.EFI':
linaro@bm-ubuntu:~$ tree /boot/efi
/boot/efi
└── EFI
    └── BOOT
        └── BOOTAA64.EFI

2 directories, 1 file

[1]: 8f12d9530e/diskimage_builder/elements/bootloader/finalise.d/50-bootloader (L158)

Task: #41698
Story: #2008560
Change-Id: I9fc55c068ea980beae273411db9d3568eec25eb8
This commit is contained in:
Xinliang Liu 2021-01-27 02:47:58 +00:00
parent c72e58b2fa
commit 68a43b9da8
2 changed files with 7 additions and 1 deletions

View File

@ -38,7 +38,8 @@ CONF = cfg.CONF
BIND_MOUNTS = ('/dev', '/proc', '/run')
BOOTLOADERS_EFI = ['bootx64.efi', 'grubaa64.efi', 'winload.efi']
BOOTLOADERS_EFI = ['bootaa64.efi', 'bootx64.efi', 'grubaa64.efi',
'winload.efi']
def _rescan_device(device):

View File

@ -0,0 +1,5 @@
---
fixes:
- |
Fix UEFI boot entry creation for aarch64 when using diskimage-builder
created whole disk images.