Posted on 06-14-2018 08:28 AM
I am in the process of using the --eraseinstall switch with starttoinstall as documented here:
https://www.jamf.com/blog/reinstall-a-clean-macos-with-one-button/
I use the suggested switches "/Applications/Install macOS High Sierra.app/Contents/Resources/startosinstall" ‑‑eraseinstall
‑‑newvolumename "Macintosh HD" --agreetolicense
I receive the following message Error: Could not get license agreement.
Anybody else seeing this issue or have a fix?
Thanks.
Posted on 06-14-2018 08:45 AM
It might be a typo in your post but I see you forget the & at the end of the command.
"/Applications/Install macOS High Sierra.app/Contents/Resources/startosinstall" --eraseinstall --newvolumename "Macintosh HD" --agreetolicense &
Posted on 06-14-2018 09:09 AM
Thanks. I tried adding the & to the end of the command and now I get "Error 800".
Posted on 06-14-2018 09:43 AM
What happens if you copy the text block I posted and paste it into terminal on a test system?
Posted on 06-14-2018 09:47 AM
I copied that text exactly. My next step is to try a different machine to verify this isn't an issue with the machine I'm testing this on.
Posted on 06-14-2018 09:58 AM
FYI,
The "other" thread says there are issue with FileVault machines...
C
Posted on 06-14-2018 10:28 AM
Correct me if I'm wrong but isn't the issue that if the current user is not FileVault 2 enabled, the command isn't able to get past the pre-boot screen.
Posted on 06-14-2018 11:01 AM
I am not sure I was just talking about this thread...
https://www.jamf.com/jamf-nation/discussions/28421/re-reinstall-a-clean-macos-with-one-button
C
Posted on 06-14-2018 11:09 AM
This maybe the post Don is referring to...
https://www.jamf.com/jamf-nation/discussions/28421/re-reinstall-a-clean-macos-with-one-button
Posted on 06-14-2018 11:55 AM
Are you using the full Apple OS installer, or the "shell" installer? I had the 800 error when I tried this originally and that was because I was using a copy of the installer from my SUS. You can tell the difference between the two because the shell installer is about 15 MB (and it downloads assets on command) and the full installer is about 5 GB. Only the latter actually has the contents to do this. I provided Apple with feedback asking them to remove the command line features from the shell installer.
Posted on 06-14-2018 12:25 PM
@chuinder I think this is my issue. Looking at the size of the installer that seems to make sense now.
Posted on 11-05-2018 09:40 AM
@DaneEckert What was your solution? I'm getting the error 800 as well
Posted on 11-05-2018 10:37 AM
@ooshnoo check out the size of the installer that downloaded. If it's not the 5/6GB download you may have a stub that doesn't include the full contents of the macOS installer. Check out installinstallmacos.py as a failproof way to always download a full installer without relying on the Mac App Store or Software Update Servers (also gives you a list of all available macOS installers, not just the most recent shipping macOS version).
Posted on 01-11-2019 08:18 AM
@emily erase-install is a great script that leverages installinstallmacos.py so a choice can be automated such as OS Version or Build ID.