EmulatorPkg PlatformBm: Fix duplicate BootManagerMenuApp boot option issue

Signed-off-by: Yang Gang <yanggang@byosoft.com.cn>
This commit is contained in:
Yang Gang 2025-01-24 15:08:58 +08:00 committed by mergify[bot]
parent 0df3729ad6
commit e356b0f6fd

View File

@ -401,9 +401,9 @@ PlatformBootManagerAfterConsole (
case BOOT_WITH_DEFAULT_SETTINGS:
default:
PlatformBdsDiagnostics (IGNORE, TRUE);
PlatformBdsRegisterStaticBootOptions ();
PlatformBdsConnectSequence ();
EfiBootManagerRefreshAllBootOption ();
PlatformBdsRegisterStaticBootOptions ();
EfiBootManagerSortLoadOptionVariable (LoadOptionTypeBoot, (SORT_COMPARE)CompareBootOption);
break;
}