]> git.ipfire.org Git - thirdparty/ipxe.git/commit
[efi] Allow downloaded images to take precedence over constructed files
authorMichael Brown <mcb30@ipxe.org>
Thu, 4 May 2023 14:29:23 +0000 (15:29 +0100)
committerMichael Brown <mcb30@ipxe.org>
Fri, 5 May 2023 12:05:28 +0000 (13:05 +0100)
commit22cc65535a331f05863f3c4b48910b0d50ff5dd7
tree1d846165fa8259e9e934ce9c2c8533333ce33306
parentbd13697446e758d5fed6afcba8f3e9883b2e2de7
[efi] Allow downloaded images to take precedence over constructed files

Try searching for a matching registered image before checking for
fixed filenames (such as "initrd.magic" for the dynamically generated
magic initrd file).  This minimises surprise by ensuring that an
explicitly downloaded image will always be used verbatim.

Signed-off-by: Michael Brown <mcb30@ipxe.org>
src/interface/efi/efi_file.c