Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Does not work with Ventura upgrade on M1s #187

Open
mcclint680 opened this issue Feb 2, 2023 · 2 comments
Open

Does not work with Ventura upgrade on M1s #187

mcclint680 opened this issue Feb 2, 2023 · 2 comments

Comments

@mcclint680
Copy link

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
Copy link

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
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants