Open mcclint680 opened 1 year ago
Hi, I added a condition if the processor is ARM then it adds parameters to "startosinstallOptions". This condition already works with Monterey.
Here is the requirement:
userToken="${10}"
userTokenPSW="${11}"
arch=$( /usr/bin/arch ) if [[ "$arch" == "arm64" ]]; then
#diskutil apfs updatePreboot /
## Set required startosinstall options for Apple Processor
startosinstallOptions+=(
"--agreetolicense"
"--nointeraction"
"--user $userToken"
"--stdinpass"
"--pidtosignal $jamfHelperPID"
"<<< $userTokenPSW"
)
else
startosinstallOptions+=(
"--agreetolicense"
"--nointeraction"
"--pidtosignal $jamfHelperPID"
)
fi
I hope my condition works for you too. Hi.
@USicilianU : Can you show/tell where in the existing OSupgrade-script you've added those lines?
The script works fine on intel Macs upgrading from Monterey to Ventura, but when it is run on Apple Silicon Macs upgrading from Monterey to Ventura, it just hangs forever with no errors or failures. The upgrade never happens. The only indication of a failure I can find is in the startosinstall.log where is says: Error: failed to authorize for installation. Provide a password with --stdinpass or --passprompt
I suspect this is because of the new tokens Apple requires on all Apple Silicon Macs. Is this something that can be worked around or integrated into the script?