Add 3rd Party SATA SSD detection

Closes https://github.com/dortania/OpenCore-Legacy-Patcher/issues/741
This commit is contained in:
Mykola Grymalyuk
2021-11-17 22:01:26 -07:00
parent 48380afdd5
commit c37aa306fd
2 changed files with 37 additions and 3 deletions
+11 -3
View File
@@ -704,9 +704,17 @@ class BuildOpenCore:
pass
# ThirdPartDrives Check
if self.model in model_array.SATAPatch and self.constants.allow_oc_everywhere is False:
print("- Adding SATA Hibernation Patch")
self.config["Kernel"]["Quirks"]["ThirdPartyDrives"] = True
for drive in ["SATA 2.5", "SATA 3.5", "mSATA"]:
if drive in smbios_data.smbios_dictionary[self.model]["Stock Storage"]:
if not self.constants.custom_model:
if self.computer.third_party_sata_ssd is True:
print("- Adding SATA Hibernation Patch")
self.config["Kernel"]["Quirks"]["ThirdPartyDrives"] = True
break
else:
print("- Adding SATA Hibernation Patch")
self.config["Kernel"]["Quirks"]["ThirdPartyDrives"] = True
break
# DEBUG Settings
if self.constants.verbose_debug is True: