Skip to content

Commit

Permalink
OcBootManagementLib: Skip CurrentPolicy for cleaner log
Browse files Browse the repository at this point in the history
  • Loading branch information
vit9696 committed Mar 2, 2020
1 parent 0c3fa04 commit 471ea9a
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion Library/OcBootManagementLib/VariableManagement.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 471ea9a

Please # to comment.