diff --git a/rEFIt_UEFI/Platform/DataHubCpu.cpp b/rEFIt_UEFI/Platform/DataHubCpu.cpp index f0238bef1..bc67c43b9 100644 --- a/rEFIt_UEFI/Platform/DataHubCpu.cpp +++ b/rEFIt_UEFI/Platform/DataHubCpu.cpp @@ -51,6 +51,8 @@ #include #define EFI_CPU_DATA_MAXIMUM_LENGTH 0x100 +const char CDM[16] = "sha2-384"; +const char HW[16] = "x86legacyap"; // gDataHub /// A pointer to the DataHubProtocol @@ -465,6 +467,13 @@ SetVariablesForOSX(LOADER_ENTRY *Entry) //clear OC present DeleteNvramVariable(L"opencore-version", gEfiAppleBootGuid); + //Now we want manually install some SecureBoot Variables while boot.efi do this automatically. + //set same values + UINT64 ecid = 0; + CopyMem(&ecid, &uuid, 8); + SetNvramVariable(L"ApECID", gAppleSecureBootVariableGuid, Attributes, 8, &ecid); + SetNvramVariable(L"HardwareModel", gAppleSecureBootVariableGuid, Attributes, 16, HW); + return EFI_SUCCESS; }