Add NVRAM WriteFlash setting for degarded systems

Closes https://github.com/dortania/OpenCore-Legacy-Patcher/issues/831
This commit is contained in:
Mykola Grymalyuk
2021-12-24 09:37:09 -07:00
parent 9b5d25b2be
commit 5ff1110e90
4 changed files with 32 additions and 2 deletions
+3
View File
@@ -899,6 +899,9 @@ class BuildOpenCore:
if self.constants.disable_connectdrivers is True:
print("- Disabling ConnectDrivers")
self.config["UEFI"]["ConnectDrivers"] = False
if self.constants.nvram_write is False:
print("- Disabling Hardware NVRAM Write")
self.config["NVRAM"]["WriteFlash"] = False
# if self.get_item_by_kv(self.config["Kernel"]["Patch"], "Comment", "Reroute kern.hv_vmm_present patch (1)")["Enabled"] is True:
# # Add Content Caching patch
# print("- Fixing Content Caching support")