OpenCoreKernel: Don't match kernels in .kext bundles
@@ -887,7 +887,7 @@ OcKernelFileOpen (
if (OpenMode == EFI_FILE_MODE_READ
&& OcStriStr (FileName, L"kernel") != NULL
&& StrCmp (FileName, L"System\\Library\\Kernels\\kernel") != 0
- && OcStriStr (FileName, L".kext") == NULL
+ && OcStriStr (FileName, L".kext\\") == NULL
&& OcStriStr (FileName, L".im4m") == NULL) {
OcKernelLoadKextsAndReserve (
