From 08add49958f65080e000053ff83cc2aa16db561c Mon Sep 17 00:00:00 2001 From: jief666 Date: Wed, 30 Sep 2020 22:03:13 +0300 Subject: [PATCH] remove CustomSmbiosGuid quirks. Force it to false. --- rEFIt_UEFI/Platform/Settings.cpp | 5 +++-- rEFIt_UEFI/refit/main.cpp | 1 + 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/rEFIt_UEFI/Platform/Settings.cpp b/rEFIt_UEFI/Platform/Settings.cpp index f1d14d7e8..dadeb0fe4 100644 --- a/rEFIt_UEFI/Platform/Settings.cpp +++ b/rEFIt_UEFI/Platform/Settings.cpp @@ -3045,8 +3045,9 @@ if ( !Prop ) panic("Cannot find AvoidRuntimeDefrag in OcQuirks under root (OC bo Prop = OcQuirksDict->propertyForKey("AppleXcpmForceBoost"); gSettings.KernelAndKextPatches.OcKernelQuirks.AppleXcpmForceBoost = IsPropertyNotNullAndTrue(Prop); - Prop = OcQuirksDict->propertyForKey("CustomSMBIOSGuid"); - gSettings.KernelAndKextPatches.OcKernelQuirks.CustomSmbiosGuid = IsPropertyNotNullAndTrue(Prop); +// We can't use that Quirks because we don't delegate SMBios to OC. +// Prop = OcQuirksDict->propertyForKey("CustomSMBIOSGuid"); +// gSettings.KernelAndKextPatches.OcKernelQuirks.CustomSmbiosGuid = IsPropertyNotNullAndTrue(Prop); Prop = OcQuirksDict->propertyForKey("DisableIoMapper"); if ( !Prop ) panic("Cannot find DisableIoMapper in config.plist/Quirks. You forgot to merge your quirks into one section. Update your config.plist"); diff --git a/rEFIt_UEFI/refit/main.cpp b/rEFIt_UEFI/refit/main.cpp index 64963fe18..86d9a0838 100644 --- a/rEFIt_UEFI/refit/main.cpp +++ b/rEFIt_UEFI/refit/main.cpp @@ -1002,6 +1002,7 @@ DBG("Beginning OC\n"); OC_STRING_ASSIGN(mOpenCoreConfiguration.Kernel.Scheme.KernelCache, gSettings.KernelAndKextPatches.OcKernelCache.c_str()); mOpenCoreConfiguration.Kernel.Scheme.FuzzyMatch = gSettings.KernelAndKextPatches.FuzzyMatch; memcpy(&mOpenCoreConfiguration.Kernel.Quirks, &gSettings.KernelAndKextPatches.OcKernelQuirks, sizeof(mOpenCoreConfiguration.Kernel.Quirks)); + mOpenCoreConfiguration.Kernel.Quirks.CustomSmbiosGuid = false; // To be double sure. But we don't have settings in config.plist so it should already be false mOpenCoreConfiguration.Kernel.Add.Count = (UINT32)kextArray.size(); mOpenCoreConfiguration.Kernel.Add.AllocCount = mOpenCoreConfiguration.Kernel.Add.Count;