* VMWare (or some sort of Mac machine with HFS+ for the permissions)
* An ISO to work with
Alright, so with your perfectly legitimate copy of TransMac <.< open the ISO in the lower half of the screen and navigate to
HFS+ Partition/System/LibraryIn here you'll find a bunch of folders and the Extensions.mkext file, this is the one we want. Copy this to wherever you'd like outside of the ISO and quit TransMac.
NOTE: This injection method still works perfectly on Leopard disks! The only thing I've seen that is different is the majority of the folders are hidden on the Leopard disk. All you have to do is show hidden folders and the rest is identical!
NOTE: In order to successfully apply this injection method you need to ensure that the DVD image does not include the Extensions folder along side Extensions.mkext in the /System/Library folder. If it does, the DVD will default to the directory's contents and load each driver it finds there. Remove this folder, and the DVD will use the mkext instead
Next we need to get this over to a Mac machine to do the modifications. I'll assume you have this setup as thats beyond the scope of this tutorial. From within Mac open up a terminal and navigate to the directory with the Extensions.mkext file and run the following commands:
mkdir extracted mkextunpack -a i386 -d extracted Extensions.mkextQuick explanation of commands for the weary:
mkdir extracted - makes a new directory called extracted mkextunpack - unpacks the mkext file -a - specifies the architechture type, in our case, i386 -d - specified the directory we want the files to be extracted toAlright, now that we're cozy running random commands we need to inject our new driver into the mix. Hopefully you have the kext on a thumb drive or on the computer you're working on, cuz you'll need it.... This is the easy part, all you have to do is copy/move the .kext folder into our folder, extracted, repair permissions, and roll up our mkext like so (I'll use AppleVIAATA.kext as our example):
mv /Users/obsidian/AppleVIAATA.kext /Users/obsidian/extracted/. sudo chown -R root:wheel /Users/obsidian/extracted sudo chmod -R 755 /Users/obsidian/extracted kextcache -a i386 -m /Users/obsidian/NewExtensions.mkext /Users/obsidian/extractedExplanation of commands for the weary:
mv - move command, hope this doesn't frighten you too much chown - changes ownership of files and folders -R - Recursively change ownership (go into all subsequent directories and files and change those too) root:wheel - sets the owner to root and the group to wheel which is what the kernel wants for its extensions chmod - changes the access rights of files and folders -R - just like chown, recursively make changes 755 - again, required by the kernel, this sets the access rights to be read/execute by all and writable by the owner (root) kextcache - creates a kernel extension cache file -a - like mkextunpack this will select a particular architechture to put into the cache file -m - create an mkext style file with the name specified sudo - runs the following commands/arguments as root just onceAlright! Now at this point you should have NewExtensions.mkext and Extensions.mkext in the directory you were working on, in my case it was my home directory /Users/obsidian. Now all you have to do is take NewExtensions.mkext and put it back into the DVD. Of course, remember that the file needs to be renamed Extensions.mkext which will overwrite the old one already in the DVD.
So back over on your Windows machine with TransMac open the ISO back up and in the top folder navigate to where your NewExtensions.mkext (renamed to Extensions.mkext) file is located and drag it back over to the directory we originally got the Extensions.mkext from: HFS+ Partition/System/Library.
It'll ask if you want to overwrite the file, yes of course we do, happy little progress bar, aaaaaaaaaaaand DONE! Burn this sucker onto a DVD-R(W) (preferrably a RW to test ) We now have our custom AppleVIAATA.kext (or what ever you're trying to inject) in our install DVD
On a side note, it should be noted that burning install DVD's at faster speeds caused nothing but trouble for me so I highly recommend burning at 1x or 2x so there's a low chance of things getting funky when you boot the DVD. A 1x burn for a full sized 4.7GB DVD will take about an hour, and a 2x will take about 30 minutes but its better to burn once and have it work then pull your hair out over coaster'd DVD's.
Hope this helps