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

Script not running properly on M1 when launched via Rosetta-emulated admin tool #225

Closed
dechkovanen opened this issue Mar 29, 2022 · 2 comments
Assignees
Labels
question Further information is requested

Comments

@dechkovanen
Copy link

Describe the bug
When initiating the script from 3rd party tool (ManageEngine Desktop Central in this case) and the tool is not universal but runs via Rosetta, the script seems to fail. This is likely due to anything launched via the tool running under Rosetta as well and the script cannot handle this

To Reproduce
Script installed using the basic pkg. Launching the script via ManageEngine Desktop Central using command /bin/bash /Library/Management/erase-install/erase-install.sh --reinstall --update --depnotify --current-user causes 1) password prompt not appear and 2) DEPnotify window to open, saying "Upgrading macOS..." but the progress bar never advances and computer sits at the DEPnotify window forever.

When running the command as arch -arm64 /bin/bash /Library/Management/erase-install/erase-install.sh --reinstall --update --depnotify --current-user the password prompt appears and everything works.

Expected behavior
The script would check whether it's running natively on Intel, on Rosetta or natively on Apple Silicon and work in any case.

Environment (please complete the following information):

  • OS version 12.2.1
  • erase-install version 26
@dechkovanen dechkovanen added the bug Something isn't working label Mar 29, 2022
@joelfjimenez
Copy link

joelfjimenez commented Mar 30, 2022

I had similar issues today on my test M1 machine, manually installing Rosetta seemed to help, the password prompt would pop up, but for me nothing was happening after providing the password, looking at the logs in our MDM in my case JAMF, showed some issues installing the Python3 framework, once I ran the command below, the script ran as usual, if it helps I was trying to reinstall macOS 12.3

/usr/sbin/softwareupdate --install-rosetta

cvgs added a commit to cvgs/erase-install that referenced this issue May 17, 2022
grahampugh added a commit that referenced this issue May 22, 2022
Fix for Issue #225: Use sysctl to check for ARM
@grahampugh
Copy link
Owner

Please try the latest 26.1 upload.

@grahampugh grahampugh added question Further information is requested and removed bug Something isn't working labels Jun 7, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

3 participants