mirror of
https://github.com/libguestfs/libguestfs.git
synced 2026-03-22 07:03:38 +00:00
uefi: Add new locations for UEFI files on Fedora (RHBZ#1338083).
Now that UEFI is fully open source the UEFI firmware can be included in Fedora. However the location is slightly different from the location that was used by kraxel's out of distro firmware. This commit searches for UEFI files in the new location, falling back to the old location (until the end of this year when we will drop it entirely). Thanks: Cole Robinson, Gerd Hoffmann (kraxel) & Microsoft for relicensing the FAT code.
This commit is contained in:
11
src/uefi.c
11
src/uefi.c
@@ -30,6 +30,7 @@
|
||||
/* See src/appliance.c:guestfs_int_get_uefi. */
|
||||
struct uefi_firmware
|
||||
guestfs_int_ovmf_i386_firmware[] = {
|
||||
/* kraxel's old repository, these will be removed by end of 2016. */
|
||||
{ "/usr/share/edk2.git/ovmf-ia32/OVMF_CODE-pure-efi.fd",
|
||||
NULL,
|
||||
"/usr/share/edk2.git/ovmf-ia32/OVMF_VARS-pure-efi.fd" },
|
||||
@@ -43,6 +44,11 @@ guestfs_int_ovmf_x86_64_firmware[] = {
|
||||
NULL,
|
||||
"/usr/share/OVMF/OVMF_VARS.fd" },
|
||||
|
||||
{ "/usr/share/edk2/ovmf/OVMF_CODE.fd",
|
||||
NULL,
|
||||
"/usr/share/edk2/ovmf/OVMF_VARS.fd" },
|
||||
|
||||
/* kraxel's old repository, these will be removed by end of 2016. */
|
||||
{ "/usr/share/edk2.git/ovmf-x64/OVMF_CODE-pure-efi.fd",
|
||||
NULL,
|
||||
"/usr/share/edk2.git/ovmf-x64/OVMF_VARS-pure-efi.fd" },
|
||||
@@ -60,6 +66,11 @@ guestfs_int_aavmf_firmware[] = {
|
||||
"/usr/share/AAVMF/AAVMF_CODE.verbose.fd",
|
||||
"/usr/share/AAVMF/AAVMF_VARS.fd" },
|
||||
|
||||
{ "/usr/share/edk2/aarch64/QEMU_EFI-pflash.raw",
|
||||
NULL,
|
||||
"/usr/share/edk2/aarch64/vars-template-pflash.raw" },
|
||||
|
||||
/* kraxel's old repository, these will be removed by end of 2016. */
|
||||
{ "/usr/share/edk2.git/aarch64/QEMU_EFI-pflash.raw",
|
||||
NULL,
|
||||
"/usr/share/edk2.git/aarch64/vars-template-pflash.raw" },
|
||||
|
||||
Reference in New Issue
Block a user