Skip to content

Instantly share code, notes, and snippets.

@peterbladen
Forked from agentsim/highsierra_bootable.sh
Last active January 6, 2020 07:31
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 2 You must be signed in to fork a gist
  • Save peterbladen/f8af06b6dbea41fcd34b733d536c3162 to your computer and use it in GitHub Desktop.
Save peterbladen/f8af06b6dbea41fcd34b733d536c3162 to your computer and use it in GitHub Desktop.
Create bootable ISO from HighSierra Installer
# Generate a BaseSystem.dmg with 10.13 Install Packages
hdiutil attach /Applications/Install\ macOS\ High\ Sierra.app/Contents/SharedSupport/InstallESD.dmg -noverify -mountpoint /Volumes/highsierra
hdiutil create -o /tmp/HighSierraBase.cdr -size 7316m -layout SPUD -fs HFS+J
hdiutil attach /tmp/HighSierraBase.cdr.dmg -noverify -mountpoint /Volumes/install_build
asr restore -source /Applications/Install\ macOS\ High\ Sierra.app/Contents/SharedSupport/BaseSystem.dmg -target /Volumes/install_build -noprompt -noverify -erase
cp -R /Volumes/highsierra/Packages/ /Volumes/OS\ X\ Base\ System/System/Installation/
hdiutil detach /Volumes/OS\ X\ Base\ System/
hdiutil detach /Volumes/highsierra/
mv /tmp/HighSierraBase.cdr.dmg /tmp/BaseSystem.dmg
# Restore the 10.13 Installer's BaseSystem.dmg into file system and place custom BaseSystem.dmg into the root
hdiutil create -o /tmp/HighSierra.cdr -size 8965m -layout SPUD -fs HFS+J
hdiutil attach /tmp/HighSierra.cdr.dmg -noverify -mountpoint /Volumes/install_build
asr restore -source /Applications/Install\ macOS\ High\ Sierra.app/Contents/SharedSupport/BaseSystem.dmg -target /Volumes/install_build -noprompt -noverify -erase
cp /tmp/BaseSystem.dmg /Volumes/OS\ X\ Base\ System
hdiutil detach /Volumes/OS\ X\ Base\ System/
hdiutil convert /tmp/HighSierra.cdr.dmg -format UDTO -o /tmp/HighSierra.iso
mv /tmp/HighSierra.iso.cdr ~/Desktop/HighSierra.iso
rm /tmp/HighSierra.cdr.dmg
@peterbladen
Copy link
Author

This is the script written by https://gist.github.com/agentsim/00cc38c693e7d0e1b36a2080870d955b but it was based on the beta and had an error at line 6

@samirfor
Copy link

samirfor commented Dec 5, 2017

Can I run this script in recovery mode?

@xiebruce
Copy link

I've converted succeed, but how can I install this "iso" system on my parallel desktop?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment