From 9cdae6f9d198354b1868ddab3ed7761a4f4f5531 Mon Sep 17 00:00:00 2001 From: SergeySlice Date: Mon, 5 Sep 2022 22:23:30 +0300 Subject: [PATCH] remove dust Signed-off-by: SergeySlice --- rEFIt_UEFI/Platform/DataHubCpu.cpp | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/rEFIt_UEFI/Platform/DataHubCpu.cpp b/rEFIt_UEFI/Platform/DataHubCpu.cpp index 7f78e5a63..f288eb169 100644 --- a/rEFIt_UEFI/Platform/DataHubCpu.cpp +++ b/rEFIt_UEFI/Platform/DataHubCpu.cpp @@ -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