[PATCH 1/1] cmd: eficonfig: create shortened boot options

Heinrich Schuchardt heinrich.schuchardt at canonical.com
Fri Nov 17 00:08:06 CET 2023


The boot options created by eficonfig should use shortened device-paths to
avoid problems if drives are enumerated in a different sequence.

Signed-off-by: Heinrich Schuchardt <heinrich.schuchardt at canonical.com>
---
 cmd/eficonfig.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/cmd/eficonfig.c b/cmd/eficonfig.c
index e6e8a0a488..3d95092109 100644
--- a/cmd/eficonfig.c
+++ b/cmd/eficonfig.c
@@ -528,6 +528,7 @@ struct efi_device_path *eficonfig_create_device_path(struct efi_device_path *dp_
 	p += fp_size;
 	*((struct efi_device_path *)p) = END;
 
+	dp_volume = efi_dp_shorten(dp_volume);
 	dp = efi_dp_append(dp_volume, (struct efi_device_path *)buf);
 	free(buf);
 
-- 
2.40.1



More information about the U-Boot mailing list