Skip to content

Commit 8098cc6

Browse files
committed
sys_patch.py: Fix Metallib logic
1 parent d1bf5ab commit 8098cc6

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
- `OpenCore-Patcher-GUI.app.zip` removed from release
77
- Deprecated in 1.5.0, use `OpenCore-Patcher.pkg` for installation
88
- Sync copyright label to 2025
9+
- Resolve MetallibSupportPkg failing to be cached on units without Kernel Debug Kit requirements
910
- Increment binaries:
1011
- OpenCorePkg 1.0.4 - release
1112
- Lilu 1.7.0 - release

opencore_legacy_patcher/sys_patch/sys_patch.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,6 +100,9 @@ def __init__(self, model: str, global_constants: constants.Constants, hardware_d
100100

101101
self.skip_root_kmutil_requirement = not self.hardware_details[HardwarePatchsetSettings.KERNEL_DEBUG_KIT_REQUIRED] if self.constants.detected_os >= os_data.os_data.ventura else False
102102

103+
self.requires_kdk_caching = self.hardware_details[HardwarePatchsetSettings.KERNEL_DEBUG_KIT_REQUIRED] and self.constants.detected_os >= os_data.os_data.ventura
104+
self.requires_metallib_caching = self.hardware_details[HardwarePatchsetSettings.METALLIB_SUPPORT_PKG_REQUIRED] and self.constants.detected_os >= os_data.os_data.sequoia
105+
103106
self.mount_obj = RootVolumeMount(self.constants.detected_os)
104107

105108

@@ -345,7 +348,7 @@ def _patch_root_vol(self):
345348

346349
if self.constants.wxpython_variant is True and self.constants.detected_os >= os_data.os_data.big_sur:
347350
needs_daemon = False
348-
if self.constants.detected_os >= os_data.os_data.ventura and self.skip_root_kmutil_requirement is False:
351+
if self.requires_kdk_caching is True or self.requires_metallib_caching is True:
349352
needs_daemon = True
350353
InstallAutomaticPatchingServices(self.constants).install_auto_patcher_launch_agent(kdk_caching_needed=needs_daemon)
351354

0 commit comments

Comments
 (0)