efi_loader: support booting via short-form device-path
authorHeinrich Schuchardt <heinrich.schuchardt@canonical.com>
Sat, 26 Feb 2022 11:05:30 +0000 (12:05 +0100)
committerHeinrich Schuchardt <heinrich.schuchardt@canonical.com>
Sun, 20 Mar 2022 10:03:06 +0000 (11:03 +0100)
commit9cdf470274ff30cda3ce89567a69106a27404c23
treeec1b704507184d7016f66eb07e4d51ef040329ff
parente46ef1db9e2c87d5aa13a04ea2329b8bae7ea9db
efi_loader: support booting via short-form device-path

The boot manager must support loading from boot options using a short-form
device-path, e.g. one where the first element is a hard drive media path.

See '3.1.2 Load Options Processing' in UEFI specification version 2.9.

Fixes: 0e074d12393b ("efi_loader: carve out efi_load_image_from_file()")
Signed-off-by: Heinrich Schuchardt <heinrich.schuchardt@canonical.com>
lib/efi_loader/efi_boottime.c