@dungeonadept Be aware that the startosinstall tool, which is used to drive a scripted install, requires a logged in user to function. And the macOS installers aren't .pkg installers, so the traditional .pkg install workflow doesn't apple. You need to use something like the macOSUpgrade or https://github.com/grahampugh/erase-install scripts to drive the installation process.
Don't use a policy's "Cache" option if you have a PKG of the Big Sur installer app. Install it.
This will "cache" (or place) the "macOS Big Sur Installer.app" into the Applications folder. Once the app is cached on the Mac, you can run a subsequent command to call the startosinstall tool with the --agreetolicense flag you mentioned and upgrade the macOS. I don't believe --nointeraction is available for the Big Sur installer app.
Don't use a policy's "Cache" option if you have a PKG of the Big Sur installer app. Install it.
This will "cache" (or place) the "macOS Big Sur Installer.app" into the Applications folder. Once the app is cached on the Mac, you can run a subsequent command to call the startosinstall tool with the --agreetolicense flag you mentioned and upgrade the macOS. I don't believe --nointeraction is available for the Big Sur installer app.
I was unaware of that. That changes things. My concern was that a lot of our users don't have very fast internet (some don't have it), so I guess my line of thinking was that if we cached the PKG (I figured installing the PKG would run the actual installation) while they're at work, they could run it whenever after that. Sounds like that's still true, we just need to install instead of run.
I wondered about that flag, I just googled it because i couldn't remember while writing the post, but I thought it was weird I hadn't seen that one in my searches.
@dungeonadept Be aware that the startosinstall tool, which is used to drive a scripted install, requires a logged in user to function. And the macOS installers aren't .pkg installers, so the traditional .pkg install workflow doesn't apple. You need to use something like the macOSUpgrade or https://github.com/grahampugh/erase-install scripts to drive the installation process.
We'd have them logged in to start it all through Self Serve.
I'm gonna toy around with the macOSUpgrade script a bit more.