From 73f6393075461a2e99828ba1ddca174c850545c6 Mon Sep 17 00:00:00 2001 From: kavsrf Date: Mon, 12 Jun 2017 10:18:09 +0300 Subject: Clear DcsExecPartGuid before execute OS to avoid problem in VirtualBox with reboot --- DcsBoot/DcsBoot.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'DcsBoot') diff --git a/DcsBoot/DcsBoot.c b/DcsBoot/DcsBoot.c index 4650ae6..244eb62 100644 --- a/DcsBoot/DcsBoot.c +++ b/DcsBoot/DcsBoot.c @@ -165,6 +165,10 @@ DcsBootMain( searchOnESP = CompareGuid(gEfiExecPartGuid, &ImagePartGuid) && EFI_ERROR(FileExist(NULL, gEfiExecCmd)); + // Clear DcsExecPartGuid before execute OS to avoid problem in VirtualBox with reboot. + EfiSetVar(L"DcsExecPartGuid", NULL, NULL, 0, EFI_VARIABLE_BOOTSERVICE_ACCESS); + EfiSetVar(L"DcsExecCmd", NULL, NULL, 0, EFI_VARIABLE_BOOTSERVICE_ACCESS); + // Find new start partition ConnectAllEfi(); InitBio(); -- cgit v1.2.3