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")