From fbe216164accb02c8643bd3edfd77c451f1f1984 Mon Sep 17 00:00:00 2001 From: Mykola Grymalyuk Date: Tue, 20 Aug 2024 15:25:36 -0600 Subject: [PATCH] support.py: Ignore non-kext files --- .../sys_patch/kernelcache/kernel_collection/support.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/opencore_legacy_patcher/sys_patch/kernelcache/kernel_collection/support.py b/opencore_legacy_patcher/sys_patch/kernelcache/kernel_collection/support.py index 06a34f5cb..0600e15b9 100644 --- a/opencore_legacy_patcher/sys_patch/kernelcache/kernel_collection/support.py +++ b/opencore_legacy_patcher/sys_patch/kernelcache/kernel_collection/support.py @@ -33,6 +33,8 @@ class KernelCacheSupport: ["teamID"] = Team ID (blank on ad-hoc signed) To grab the CDHash of a kext, run 'codesign -dvvv ' """ + if not kext_name.endswith(".kext"): + return False try: aux_cache_path = Path(self.mount_location_data) / Path("/private/var/db/KernelExtensionManagement/AuxKC/CurrentAuxKC/com.apple.kcgen.instructions.plist")