Load option with short device path for boot vars
authorRaymond Mao <raymond.mao@linaro.org>
Mon, 19 Jun 2023 21:23:01 +0000 (14:23 -0700)
committerHeinrich Schuchardt <heinrich.schuchardt@canonical.com>
Sat, 15 Jul 2023 09:20:41 +0000 (11:20 +0200)
commit7aa022c797171e4405b66ee41e5644835ca9c9dd
tree185ef4fddcb561b6fb271657e9e2ea098401ad00
parent9945bc4f867a9d0dd2c69b86b182265320f37d4b
Load option with short device path for boot vars

The boot variables automatically generated for removable medias
should be with short form of device path without device nodes.
This is a requirement for the case that a removable media is
plugged into a different port but is still able to work with the
existing boot variables.

Signed-off-by: Raymond Mao <raymond.mao@linaro.org>
Reviewed-by: Heinrich Schuchardt <xypron.glpk@gmx.de>
Reviewed-by: Ilias Apalodimas <ilias.apalodimas@linaro.org>
lib/efi_loader/efi_bootmgr.c