Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save AnnoyingTechnology/f9251184ecd7575d39ce37a3e094bace to your computer and use it in GitHub Desktop.
Save AnnoyingTechnology/f9251184ecd7575d39ce37a3e094bace to your computer and use it in GitHub Desktop.

Revisions

  1. AnnoyingTechnology revised this gist Aug 29, 2018. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion highsierra_bootable.sh
    Original file line number Diff line number Diff line change
    @@ -1,5 +1,5 @@
    # Generate a BaseSystem.dmg with 10.13 Install Packages
    hdiutil attach /Applications/Install\ macOS\ 10.13\ Beta.app/Contents/SharedSupport/InstallESD.dmg -noverify -mountpoint /Volumes/highsierra
    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\ 10.13\ Beta.app/Contents/SharedSupport/BaseSystem.dmg -target /Volumes/install_build -noprompt -noverify -erase
  2. @agentsim agentsim created this gist Jun 10, 2017.
    20 changes: 20 additions & 0 deletions highsierra_bootable.sh
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,20 @@
    # Generate a BaseSystem.dmg with 10.13 Install Packages
    hdiutil attach /Applications/Install\ macOS\ 10.13\ Beta.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\ 10.13\ Beta.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\ 10.13\ Beta.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