efi_loader: use short-form DP for load options
authorHeinrich Schuchardt <heinrich.schuchardt@canonical.com>
Sat, 26 Feb 2022 11:10:10 +0000 (12:10 +0100)
committerHeinrich Schuchardt <heinrich.schuchardt@canonical.com>
Sun, 20 Mar 2022 10:03:06 +0000 (11:03 +0100)
commit63276a569d4832d139206d652207663323df46eb
tree465e722fa83f320bc71b75a5f11d5192f02fdbaa
parent9cdf470274ff30cda3ce89567a69106a27404c23
efi_loader: use short-form DP for load options

The GUID of partitions is sufficient for identification and will stay
constant in the lifetime of a boot option. The preceding path of the
device-path may change due to changes in the enumeration of devices.
Therefore it is preferable to use the short-form of device-paths in load
options. Adjust the 'efidebug boot add' command accordingly.

Signed-off-by: Heinrich Schuchardt <heinrich.schuchardt@canonical.com>
cmd/efidebug.c