remove dust

Signed-off-by: SergeySlice <sergey.slice@gmail.com>
This commit is contained in:
SergeySlice 2022-09-05 22:23:30 +03:00
parent 847b46bbaf
commit 9cdae6f9d1

View File

@ -464,8 +464,18 @@ SetVariablesForOSX(LOADER_ENTRY *Entry)
LangLen = 0;
AddNvramVariable(L"wake-failure", gEfiAppleBootGuid, Attributes, 5, &LangLen);
//clear OC present
//clear OC garbage
DeleteNvramVariable(L"opencore-version", gEfiAppleBootGuid);
DeleteNvramVariable(L"ApBoardID", gAppleSecureBootVariableGuid);
DeleteNvramVariable(L"ApSecurityDomain", gAppleSecureBootVariableGuid);
DeleteNvramVariable(L"ApProductionStatus", gAppleSecureBootVariableGuid);
DeleteNvramVariable(L"ApSecurityMode", gAppleSecureBootVariableGuid);
DeleteNvramVariable(L"EffectiveProductionStatus", gAppleSecureBootVariableGuid);
DeleteNvramVariable(L"EffectiveSecurityMode", gAppleSecureBootVariableGuid);
DeleteNvramVariable(L"CertificateEpoch", gAppleSecureBootVariableGuid);
DeleteNvramVariable(L"MixNMatchPreventionStatus", gAppleSecureBootVariableGuid);
DeleteNvramVariable(L"CryptoDigestMethod", gAppleSecureBootVariableGuid);
DeleteNvramVariable(L"InternalUseOnlyUnit", gAppleSecureBootVariableGuid);
//Now we want manually install some SecureBoot Variables while boot.efi do this automatically.
//set same values