In terminal, change into the ‘Install
#!/bin/bash hdiutil attach ./Contents/SharedSupport/InstallESD.dmg -noverify -nobrowse -mountpoint /Volumes/install_app hdiutil convert /Volumes/install_app/BaseSystem.dmg -format UDSP -o ./OSXInstall hdiutil resize -size 8g ./OSXInstall.sparseimage hdiutil attach ./OSXInstall.sparseimage -noverify -nobrowse -mountpoint /Volumes/install_build rm /Volumes/install_build/System/Installation/Packages cp -rp /Volumes/install_app/Packages /Volumes/install_build/System/Installation/ cp -rp /Volumes/install_app/BaseSystem.chunklist /Volumes/install_build cp -rp /Volumes/install_app/BaseSystem.dmg /Volumes/install_build hdiutil detach /Volumes/install_app hdiutil detach /Volumes/install_build hdiutil resize -size `hdiutil resize -limits ./OSXInstall.sparseimage | tail -n 1 | awk '{ print $1 }'`b ./OSXInstall.sparseimage hdiutil convert ./OSXInstall.sparseimage -format UDTO -o ./OSXInstall rm ./OSXInstall.sparseimage mv ./OSXInstall.cdr ~/Desktop/OSXInstall.iso
Finally, run ‘sudo sh makebootableiso.sh’ and let it go. You should end up with a ‘OSXInstall.iso’ file on your Desktop. Burn that or use it in a VM to install OSX!
thanks !!!