2018-03-04 06:24:36 -05:00
|
|
|
#!/bin/sh
|
2018-05-22 19:50:53 -04:00
|
|
|
set -eux
|
2018-03-04 06:24:36 -05:00
|
|
|
|
|
|
|
# Format partition
|
|
|
|
diskutil eraseDisk JHFS+ Disk disk0
|
|
|
|
|
|
|
|
# Packages are installed in reversed order - why?
|
|
|
|
"/Volumes/Image Volume/Install macOS High Sierra.app/Contents/Resources/startosinstall" \
|
|
|
|
--volume /Volumes/Disk \
|
|
|
|
--converttoapfs no \
|
|
|
|
--agreetolicense \
|
|
|
|
--installpackage "/Volumes/setup/postinstall.pkg" \
|
|
|
|
--installpackage "/Volumes/VMware Tools/Install VMware Tools.app/Contents/Resources/VMware Tools.pkg"
|