Skip to content

Instantly share code, notes, and snippets.

View peterbladen's full-sized avatar

Peter peterbladen

View GitHub Profile

Keybase proof

I hereby claim:

  • I am peterbladen on github.
  • I am peterbladen (https://keybase.io/peterbladen) on keybase.
  • I have a public key ASBY97u9Zy5oiOg9Ir8IWVrQx9UlE95Dpxj0nbSRbvQGqwo

To claim this, I am signing this object:

@peterbladen
peterbladen / highsierra_iso.sh
Last active January 6, 2020 07:31 — forked from agentsim/highsierra_bootable.sh
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