I have a hundred or so machines in labs running Catalina that I need to upgrade to Monterey over the summer. I found this blog: https://www.jamf.com/blog/reinstall-a-clean-macos-with-one-button/ and thought that I would be able to modify the workflow to allow for a zero touch upgrade but I am running into a snag.
In the caching policy I have it copy down the OS install assistant and run the package. This puts the Monterey installer in the applications folder as intended and then I have the Mac reboot. This is working correctly, the installer is in applications and the machine reboots when it is done.
I have a second policy that runs on a restart that kicks off the startosinstall script. This policy also seems to be working as the status shows the script was run and exited and is marked as complete, however, the Mac never actually does the OS upgrade or restarts as it should. I let it sit overnight and nothing. Still on Catalina.
To troubleshoot I modified the second policy to be Self Service and tried that and it worked correctly running the script, restarting and doing the wipe and install.
What am I missing? Why will it run via Self Service and not run when no users are logged in?
