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

InstallApplications silently fails with packages that are not universal if Rosetta is not installed #90

Open
erikng opened this issue Mar 1, 2021 · 3 comments

Comments

@erikng
Copy link
Member

erikng commented Mar 1, 2021

When installing packages that do not contain <options customize="never" require-scripts="false" hostArchitectures="x86_64,arm64"/> in their Distribution file, IAs attempts to install the package and silently fails. It thinks the install is successful.

Your provisioning process may then fail in weird ways. A second IAs run will likely work, because Rosetta is now installed (by another script you have)

@rodchristiansen
Copy link

What about adding Rosetta install in preflight script?

if [ $(/usr/bin/arch) == "arm64" ] ; then
    /usr/sbin/softwareupdate --install-rosetta --agree-to-license
fi

@erikng
Copy link
Member Author

erikng commented Mar 2, 2021

I think I'm more interested in detecting and logging this so admins have some kind of idea as to what's going on. Debugging this took an entire day to figure out.

@korylprince
Copy link

@rodchristiansen's method works for me, but the Rosetta install command returns a 0, so make sure you add an exit 1 to the end of the script, or installapplications will remove itself before running anything else.

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