mirror of
https://github.com/dortania/OpenCore-Legacy-Patcher.git
synced 2026-06-21 22:50:51 +10:00
Clean up code
This commit is contained in:
@@ -33,6 +33,8 @@
|
|||||||
- TeraScale 2 acceleration to be added in the future
|
- TeraScale 2 acceleration to be added in the future
|
||||||
- Allow Trackpad gestures on MacBook4,1 and MacBook5,2
|
- Allow Trackpad gestures on MacBook4,1 and MacBook5,2
|
||||||
- System Preferences will not report settings however
|
- System Preferences will not report settings however
|
||||||
|
- Allow Root Volume Patched Systems to use FileVault 2
|
||||||
|
- Requires macOS 11.3 (20E232) or newer
|
||||||
|
|
||||||
## 0.2.4
|
## 0.2.4
|
||||||
|
|
||||||
|
|||||||
@@ -224,6 +224,7 @@ If you plan to create the USB for another machine, please select the "Change Mod
|
|||||||
elif host_is_target:
|
elif host_is_target:
|
||||||
self.constants.sip_status = False # Unsigned kexts
|
self.constants.sip_status = False # Unsigned kexts
|
||||||
self.constants.secure_status = False # Modified root volume
|
self.constants.secure_status = False # Modified root volume
|
||||||
|
self.constants.allow_fv_root = True # Allow FileVault on broken seal
|
||||||
# self.constants.amfi_status = True # Signed bundles, Don't need to explicitly set currently
|
# self.constants.amfi_status = True # Signed bundles, Don't need to explicitly set currently
|
||||||
if model == "MacBook8,1" and host_is_target:
|
if model == "MacBook8,1" and host_is_target:
|
||||||
# MacBook8,1 has an odd bug where it cannot install Monterey with Minimal spoofing
|
# MacBook8,1 has an odd bug where it cannot install Monterey with Minimal spoofing
|
||||||
|
|||||||
@@ -57,6 +57,7 @@ class OpenCoreLegacyPatcher:
|
|||||||
else:
|
else:
|
||||||
self.constants.sip_status = False # Unsigned kexts
|
self.constants.sip_status = False # Unsigned kexts
|
||||||
self.constants.secure_status = False # Modified root volume
|
self.constants.secure_status = False # Modified root volume
|
||||||
|
self.constants.allow_fv_root = True # Allow FileVault on broken seal
|
||||||
# self.constants.amfi_status = True # Signed bundles, Don't need to explicitly set currently
|
# self.constants.amfi_status = True # Signed bundles, Don't need to explicitly set currently
|
||||||
if model == "MacBook8,1":
|
if model == "MacBook8,1":
|
||||||
# MacBook8,1 has an odd bug where it cannot install Monterey with Minimal spoofing
|
# MacBook8,1 has an odd bug where it cannot install Monterey with Minimal spoofing
|
||||||
|
|||||||
+1
-1
@@ -686,7 +686,7 @@ class BuildOpenCore:
|
|||||||
if self.model in ModelArray.dGPU_switch:
|
if self.model in ModelArray.dGPU_switch:
|
||||||
print("- Allowing GMUX switching in Windows")
|
print("- Allowing GMUX switching in Windows")
|
||||||
self.config["Booter"]["Quirks"]["SignalAppleOS"] = True
|
self.config["Booter"]["Quirks"]["SignalAppleOS"] = True
|
||||||
# if self.constants.allow_fv_root is True:
|
if self.constants.allow_fv_root is True:
|
||||||
# apfs.kext has an undocumented boot-arg that allows FileVault usage on broken APFS seals (-arv_allow_fv)
|
# apfs.kext has an undocumented boot-arg that allows FileVault usage on broken APFS seals (-arv_allow_fv)
|
||||||
# This is however hidden behind kern.development, thus we patch _apfs_filevault_allowed to always return true
|
# This is however hidden behind kern.development, thus we patch _apfs_filevault_allowed to always return true
|
||||||
# Note this function was added in 11.3 (20E232, 20.4), older builds do not support this (ie. 11.2.3)
|
# Note this function was added in 11.3 (20E232, 20.4), older builds do not support this (ie. 11.2.3)
|
||||||
|
|||||||
Reference in New Issue
Block a user