I am puzzled
I have a policy that deploys Install macOS Catalina.app to /Applications
I have a policy with a "oneliner" in Files and Processes: "/Applications/Install macOS Catalina.app/Contents/Resources/startosinstall" ‑‑agreetolicense
If I browse to the same location and run it manually in the Mac, I get "preparing to run macOS Installer" and I can see osinstallersetupd process in the Activity Monitor, so everything works fine manually.
Also I do not see the osinstallersetupd-process when I run the policy.
Any ideas what I am doing wrong?
I think you may need an additional flag -nointeraction to make this automatic. Below is what I've used successfully.
/Applications/Install macOS Catalina.app/Contents/Resources/startosinstall --agreetolicense --nointeraction
Also @carlo.anselmi is correct and startosinstall requires a user be logged in to run.
I’ve been banging my head against the wall on this one. I’m also using a Files and Processes Self Service policy with the following command: /Applications/Install macOS Catalina.app/Contents/Resources/startosinstall --agreetolicense --nointeraction &
This has led to inconsistent results. Some of my test machines are installing flawlessly. Others just sit and never seem to do anything while still others will have an error to the effect that Self Service can’t save and quit, though if I click through the error dialogs it does quit, restart, and complete the install.
I am in the same boat where I have deployed the Catalina installer package to targeted machines and set up a policy to execute the following command.
'/Applications/Install macOS Catalina.app/Contents/Resources/startosinstall' --eraseinstall --agreetolicense --forcequitapps --newvolumename 'Macintosh HD' --nointeraction &
In theory, this should quite all open apps, restart the computer, wipe the drive and install macOS Catalina.
All it does is create a new partition and dump the installer files in there. That's it !
What am I doing wrong here?
My test machine is running macOS Mojave