mirror of
https://github.com/libguestfs/libguestfs.git
synced 2026-03-21 22:53:37 +00:00
lib: uefi: use the efi libvirt firmware if available
In case libvirt supports the firmware autoselection and there is an EFI firmware available, use it directly instead of handling the firmware manually.
This commit is contained in:
@@ -72,6 +72,15 @@ guestfs_int_get_uefi (guestfs_h *g, char *const *firmwares,
|
||||
#ifdef __aarch64__
|
||||
size_t i;
|
||||
|
||||
if (firmwares && firmware) {
|
||||
for (i = 0; firmwares[i] != NULL; ++i) {
|
||||
if (STREQ(firmwares[i], "efi")) {
|
||||
*firmware = firmwares[i];
|
||||
return 0;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
for (i = 0; guestfs_int_uefi_aarch64_firmware[i].code != NULL; ++i) {
|
||||
const char *codefile = guestfs_int_uefi_aarch64_firmware[i].code;
|
||||
const char *code_debug_file =
|
||||
|
||||
Reference in New Issue
Block a user