OvmfPkg/QemuKernelLoaderFsDxe: accept absolute paths

EFI shell looks for "\startup.nsh".
Try "-fw_cfg name=etc/boot/startup.nsh,string='echo hello'" ;)

Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
This commit is contained in:
Gerd Hoffmann 2025-01-16 16:03:01 +01:00 committed by Ard Biesheuvel
parent 1111e9fe70
commit 46ae4e4b95

View File

@ -806,6 +806,11 @@ QemuKernelStubFileOpen (
//
// Locate the file.
//
if (FileName[0] == '\\') {
// also accept absolute paths, i.e. '\kernel' for 'kernel'
FileName++;
}
Blob = FindKernelBlob (FileName);
if (Blob == NULL) {