When generate boot option by BDS, always append Optional data
which specify it's generated by BDS.

Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Eric Dong <eric.d...@intel.com>
Cc: Ruiyu Ni <ruiyu...@intel.com>
---
 MdeModulePkg/Library/UefiBootManagerLib/BmBoot.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/MdeModulePkg/Library/UefiBootManagerLib/BmBoot.c 
b/MdeModulePkg/Library/UefiBootManagerLib/BmBoot.c
index 6b85f0c..7c45ff5 100644
--- a/MdeModulePkg/Library/UefiBootManagerLib/BmBoot.c
+++ b/MdeModulePkg/Library/UefiBootManagerLib/BmBoot.c
@@ -2287,8 +2287,8 @@ BmRegisterBootManagerMenu (
              LOAD_OPTION_CATEGORY_APP | LOAD_OPTION_ACTIVE | 
LOAD_OPTION_HIDDEN,
              (Description != NULL) ? Description : L"Boot Manager Menu",
              DevicePath,
-             NULL,
-             0
+             (UINT8*)&mBmAutoCreateBootOptionGuid,
+             sizeof (EFI_GUID)
              );
   ASSERT_EFI_ERROR (Status);
   FreePool (DevicePath);
-- 
2.6.4.windows.1

_______________________________________________
edk2-devel mailing list
edk2-devel@lists.01.org
https://lists.01.org/mailman/listinfo/edk2-devel

Reply via email to