NOTE: This is a post has not been completely tested. So use at your own risk. This text will be removed once the post is completely tested.
What you need
- InstallESD.dmg
- 7zip installed on your computer
- Thumb Drive with 8gb of space on it
- A few other things installed
Getting Ready
So first we need to make sure we have a few things installed.
yum install hfsplusutils gparted p7zip dmg2img
on Debian based systems use
sudo apt-get install hfsplus hfsprogs hfsutils gparted p7zip-full
Now that we have all the tools we need we can move on.
Navigate to were your InstallESD.dmg file is. Then run the following command.
7z x InstallESD.dmg
After it is finished cd into the InstallMacOSX.pkg
cd InstallMacOSX
now run
dmg2img InstallESD.dmg
Now you have a new file called InstallESD.img.
Open up Gparted (or your favorite disk tool) and find your thumb drive. Format the drive with a GUID Partition Table and make sure it is HFS+. When it is finished formating, Find the thumb drive and unmount it, and then click restore. It is under the “More actions” button on the top right. Find your InstallESD.img file and click Restore.
You are now finished. Have Fun!