diff --git a/Changelog.md b/Changelog.md index 0c248a4d81b307fb943fea2d87b365a0ddee6319..13180af81f00d5194e3ce57369dbffb3db53ff8a 100644 --- a/Changelog.md +++ b/Changelog.md @@ -1,5 +1,8 @@ OpenCore Changelog ================== +#### v0.7.0 +- Fixed NVRAM reset on firmware with write-protected `BootOptionSupport` + #### v0.6.9 - Fixed out-of-sync cursor movement rectangle when loading e.g. CrScreenshotDxe - Updated underlying EDK II package to edk2-stable202102 diff --git a/Library/OcBootManagementLib/VariableManagement.c b/Library/OcBootManagementLib/VariableManagement.c index 77aa3452a915a852e9f0749544956e8628054257..7b4c5afaffeb2a278c7cf75f4de5fe2f248864b6 100644 --- a/Library/OcBootManagementLib/VariableManagement.c +++ b/Library/OcBootManagementLib/VariableManagement.c @@ -80,7 +80,8 @@ IsDeletableVariable ( // Only erase boot and driver entries for BDS // I.e. BootOrder, Boot####, DriverOrder, Driver#### // - if (StrnCmp (Name, L"Boot", StrLen(L"Boot")) == 0 + if ((StrnCmp (Name, L"Boot", StrLen(L"Boot")) == 0 + && StrCmp (Name, L"BootOptionSupport") != 0) || StrnCmp (Name, L"Driver", StrLen(L"Driver")) == 0) { return TRUE; }