So I know you all are using OpenCore and the older patching method is kind of dead, but I'm going down with my ship, and to finish everything up, I have one last goal and getting there I might need a little help with (I will switch to OC with macOS 12, also Objective-C, and also try to fix every other dumb decision I've made with this patcher, that has nothing to do with this though). I think someone has already figured out it, so I'm just going to ask here before confusing myself more haha.
I was trying to patch the kexts on an installer USB's BaseSystem, so I patched the kexts, fixed the permissions then went to rebuild the kernel collection, but I noticed that there's not a kernel. I check macOS Base System, the Preboot, and the main Install macOS Big Sur volume, but nothing.
I later noticed that
@jackluke had a repo on GitHub that does this, but without any source code that explains how the kernel was rebuilt (
https://github.com/jacklukem/BigSurfixes), the only source code I could find was the scripts to copy a pre-made custom kernel collection to the USB.
I'm wondering, does anyone know (possibly jackluke, maybe someone else) how this was achieved? I could just be dumb/blind and I'm missing something big that could help me (I probably am...), but I thought it would be good to come here since somebody probably knows what I'm missing.
Thanks in advance!