Advertisement
Guest User

Untitled

a guest
Oct 24th, 2016
60
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.07 KB | None | 0 0
  1. hdiutil attach /Applications/Install\ OS\ X\ El\ Capitan.app/Contents/SharedSupport/InstallESD.dmg -noverify -nobrowse -mountpoint /Volumes/install_app
  2.  
  3. hdiutil convert /Volumes/install_app/BaseSystem.dmg -format UDSP -o /tmp/El\ Capitan
  4.  
  5. hdiutil resize -size 9g /tmp/El\ Capitan.sparseimage
  6.  
  7. hdiutil attach /tmp/El\ Capitan.sparseimage -noverify -nobrowse -mountpoint /Volumes/install_build
  8.  
  9. rm /Volumes/install_build/System/Installation/Packages
  10.  
  11. cp -rp /Volumes/install_app/Packages /Volumes/install_build/System/Installation/
  12.  
  13. cp -rp /Volumes/install_app/BaseSystem.chunklist /Volumes/install_build
  14.  
  15. cp -rp /Volumes/install_app/BaseSystem.dmg /Volumes/install_build
  16.  
  17. hdiutil detach /Volumes/install_app
  18.  
  19. hdiutil detach /Volumes/install_build
  20.  
  21. hdiutil resize -size `hdiutil resize -limits /tmp/El\ Capitan.sparseimage | tail -n 1 | awk '{ print $1 }'`b /tmp/El\ Capitan.sparseimage
  22.  
  23. hdiutil convert /tmp/El\ Capitan.sparseimage -format UDTO -o /tmp/El\ Capitan
  24.  
  25. rm /tmp/El\ Capitan.sparseimage
  26.  
  27. mv /tmp/El\ Capitan.cdr ~/Desktop/El\ Capitan.iso
  28.  
  29. sudo drutil burn ~/Desktop/El\ Capitan.iso
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement