diff --git a/Library/OcBootManagementLib/VariableManagement.c b/Library/OcBootManagementLib/VariableManagement.c index b4be6a2ca29..8eeb0a053f4 100644 --- a/Library/OcBootManagementLib/VariableManagement.c +++ b/Library/OcBootManagementLib/VariableManagement.c @@ -112,7 +112,12 @@ IsDeletableVariable ( // Microsoft certificates if present // } else if (CompareGuid (Guid, &gMicrosoftVariableGuid)) { - return TRUE; + // + // Do not remove current OEM policy. + // + if (StrCmp (Name, L"CurrentPolicy") != 0) { + return TRUE; + } } return FALSE;