I have a Policy set to run first after Macs enroll in JamfPro that only contains the following in "Files and Processes"
softwareupdate --install-rosetta --agree-to-licenseAnd for the most part it works great. The problem is that I have seen a lot of M1 Macs unable to install some packages because they are missing Rosetta. When I check the Policy log for installing Rosetta, the command does run, but it seems to successfully fail. There appears to be an issue with getting the Rosetta installer from Apple at that particular moment the command was run. Usually there will be a line that says "Rosetta is unavailable" or other messages about the server isn't available. I've been trying to find a fleshed-out script that can check for errors while executing that one-liner and tell Jamf that it failed so it shows as an actual failure. Does anyone have a script that takes these server-side failures into account?
I've already tried obtaining the Rosetta pkg via instructions found here https://stackoverflow.com/questions/70907499/download-a-package-copy-of-rosetta-to-manually-transfer-to-another-mac-without-i/70907674 but the package has has a very hit-or-miss track record of working. I gave up on trying that as a method of deploying Rosetta directly and not relying on Apple's server to be working.
