kc9wwh / macOSUpgrade

Workflow for doing in-place upgrades.
Other
420 stars 103 forks source link

Does not work with Ventura upgrade on M1s #187

Open mcclint680 opened 1 year ago

mcclint680 commented 1 year ago

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?

USicilianU commented 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:

Admin local

userToken="${10}"

PSW admin local

userTokenPSW="${11}"

arch=$( /usr/bin/arch ) if [[ "$arch" == "arm64" ]]; then

Update the preboot role volume's subject directory.

#diskutil apfs updatePreboot /
## Set required startosinstall options for Apple Processor
startosinstallOptions+=(
"--agreetolicense"
"--nointeraction"
"--user $userToken"
"--stdinpass"
"--pidtosignal $jamfHelperPID"
"<<< $userTokenPSW"
)

else

Set required startosinstall options for Intel Processor

startosinstallOptions+=(
"--agreetolicense"
"--nointeraction"
"--pidtosignal $jamfHelperPID"
)

fi

I hope my condition works for you too. Hi.

MusicMaker81 commented 11 months ago

@USicilianU : Can you show/tell where in the existing OSupgrade-script you've added those lines?