@@ -104,6 +104,8 @@ class OpenCoreLegacyPatcher:
104104 if args .moderate_smbios :
105105 print ("- Set Moderate SMBIOS Patching configuration" )
106106 self .constants .serial_settings = "Moderate"
107+ if args .model :
108+ host_is_target
107109 if args .smbios_spoof :
108110 if args .smbios_spoof == "Minimal" :
109111 self .constants .serial_settings = "Minimal"
@@ -134,6 +136,7 @@ If you plan to create the USB for another machine, please select the "Change Mod
134136 sys .exit (1 )
135137 else :
136138 print (f"- Using detected model: { self .constants .computer .real_model } " )
139+ self .set_defaults (self .constants .custom_model , True )
137140 self .build_opencore ()
138141 if args .patch_sys_vol :
139142 if args .terascale_2 :
@@ -164,11 +167,22 @@ If you plan to create the USB for another machine, please select the "Change Mod
164167 self .constants .sip_status = True
165168 # self.constants.secure_status = True # Monterey
166169 self .constants .disable_amfi = False
170+ elif host_is_target :
171+ self .constants .sip_status = False # Unsigned kexts
172+ self .constants .secure_status = False # Root volume modified
173+ self .constants .disable_amfi = True # Unsigned binaries
167174 if model in ModelArray .ModernGPU :
168175 if host_is_target and model in ["iMac13,1" , "iMac13,3" ] and self .computer .dgpu :
169176 # Some models have a supported dGPU, others don't
170177 print ("- Detected Metal dGPU, overriding default configuration" )
171178 self .constants .sip_status = True
179+ elif host_is_target :
180+ self .constants .sip_status = False # Unsigned kexts
181+ self .constants .secure_status = False # Modified root volume
182+ # self.constants.disable_amfi = False # Signed bundles, Don't need to explicitly set currently
183+ if model == "MacBook8,1" and host_is_target :
184+ # MacBook8,1 has an odd bug where it cannot install Monterey with Minimal spoofing
185+ self .constants .serial_settings == "Moderate"
172186
173187 def patch_vol (self ):
174188 SysPatch .PatchSysVolume (self .constants .custom_model or self .constants .computer .real_model , self .constants ).start_patch ()
0 commit comments