Add better FV patch detection

This commit is contained in:
Mykola Grymalyuk
2021-09-21 18:59:50 -06:00
parent c748b03544
commit 1b2eea6b50
6 changed files with 16 additions and 3 deletions

View File

@@ -710,6 +710,8 @@ class BuildOpenCore:
# Note this function was added in 11.3 (20E232, 20.4), older builds do not support this (ie. 11.2.3)
print("- Allowing FileVault on Root Patched systems")
self.get_item_by_kv(self.config["Kernel"]["Patch"], "Identifier", "com.apple.filesystems.apfs")["Enabled"] = True
# Lets us check in SysPatch.py if config supports FileVault
self.config["NVRAM"]["Add"]["4D1FDA02-38C7-4A6A-9CC6-4BCCA8B30102"]["OCLP-Settings"] += "-allow_fv"
def set_smbios(self):
spoofed_model = self.model