Skip to content

Commit

Permalink
hwtarget is not for installer
Browse files Browse the repository at this point in the history
Signed-off-by: SergeySlice <[email protected]>
  • Loading branch information
SergeySlice committed Oct 31, 2021
1 parent ea902d6 commit 5c3e2ea
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion rEFIt_UEFI/Platform/DataHubCpu.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -392,7 +392,7 @@ SetVariablesForOSX(LOADER_ENTRY *Entry)
SetNvramVariable(L"csr-active-config", &gEfiAppleBootGuid, Attributes, sizeof(gSettings.RtVariables.CsrActiveConfig), &gSettings.RtVariables.CsrActiveConfig);
}

if (gSettings.RtVariables.HWTarget.notEmpty()) {
if (gSettings.RtVariables.HWTarget.notEmpty() && (Entry->LoaderType != OSTYPE_OSX_INSTALLER) ) {
SetNvramXString8(L"BridgeOSHardwareModel", &gEfiAppleNvramGuid, Attributes, gSettings.RtVariables.HWTarget);
} else {
DeleteNvramVariable(L"BridgeOSHardwareModel", &gEfiAppleNvramGuid);
Expand Down

0 comments on commit 5c3e2ea

Please sign in to comment.