Greg Neagle published a script named installinstallmacos.py which makes obtaining Install macOS High Sierra.app even simpler than via the Mac App Store. This is of course done normally via the Mac App Store. All you need to do is ensure the latest Install macOS High Sierra.app is available on the device. Jamf Pro), or package the command up as a payload-free package to run in Munki. Since this command requires no interaction, it is easy to run this as a command on your management tool (e.g. You cannot specify a volume with the -volume flag in combination with the -eraseinstall flag, since it is implied that the command will be run on the volume to be erased. It is also only present in versions of the Install macOS High Sierra.app that install macOS 10.13.4 or above. The -eraseinstall flag only works on APFS volumes, and only works on devices that already have macOS 10.13.4 installed. It may just be that we get a wrapper for the startosinstall mechanism perhaps a new check-box in the GUI of Install macOS High Sierra.app that says “Erase my Boot Drive and reinstall macOS High Sierra”. Many think that will come in the future, but I’m not so sure it would make sense for Apple to provide this. It’s as near as you can get to “Erase All Contents And Settings” without some sort of built-in special APFS-snapshot-plus-software-updates mechanism. eraseinstall -agreetolicense -nointeraction Using the new flag, the following command erases the system disk in situ, without need to boot from a network drive, or Recovery Partition, or connect to another computer using Target Disk Mode: You can use the -installpackage flag to specify additional packages to apply after installing macOS. The startosinstall command inside the macOS Installer app at Contents/Resources/startosinstall lets you erase your boot volume and install macOS to it using the new -eraseinstall flag. In the Apple Knowledge Base article Prepare your institution for macOS High Sierra 10.13.4, Apple revealed a new flag for the startosinstall command, the -eraseinstall flag: The -nointeraction flag is undocumented, as described in Rich Trouton’s post, and allows the command to be run without interaction, meaning it can be scripted. agreetolicense -nointeraction -volume /Volumes/External\ Macintosh\ HD applicationpath /Applications/Install\ macOS\ High\ Sierra.app \ Applications/Install\ macOS\ High\ Sierra.app/Contents/Resources/startosinstall \
0 Comments
Leave a Reply. |