grahampugh / erase-install

A script that automates downloading macOS installers, and optionally erasing or upgrading macOS in a single process. Watch the video!
https://grahamrpugh.com/2023/05/14/macaduk-presentation-eraseinstall.html
Apache License 2.0
834 stars 131 forks source link

macOS Sequoia is not getting upgraded when we try using Jamf policy with erase-install launcher script #518

Open pveenu opened 2 months ago

pveenu commented 2 months ago

Describe the bug macOS Sequoia is not getting upgraded when we try using erase-install launcher script with Jamf.

To Reproduce

Code/log output Please supply the full command used, and if applicable, add full output from Terminal or from /var/log/erase-install.log. Don't post a partial log - I need the whole thing. Either upload the log as a file, or paste the output in a code block like this:

your log goes here between triple backticks! Make sure you remove any personal information!

Screenshots If applicable, add screenshots to help explain your problem.

Environment (please complete the following information):

grahampugh commented 2 months ago

Please post the log.

pveenu commented 2 months ago

erase-install.log

Attached is the log file. I also used the --depnotify parameter for notifications, but it was defaulting to using SwiftDialog. Please see the attached image for reference.

Screenshot 2024-07-04 at 11 39 56 AM
grahampugh commented 2 months ago

Something on your computer is preventing the disk image from unmounting, which causes Mist to fail, as shown in the logs:

Invalid Exit Status Code: '16', Message: hdiutil: couldn't eject "disk4" - Resource busy

Often this is due to some sort of security or scanning software that is preventing the disk image from either mounting or unmounting.

--depnotify mode does not exist since erase-install version 28.0. If you want to use DEPNotify you'll have to go back to version 27.3.

pveenu commented 2 months ago

We encountered that error code because the upgrade was canceled due to it attempting to install macOS Sonoma instead of macOS Sequoia. The logs indicate that it only searches for macOS Sonoma installers, even though we used --beta and --catalog 15 to obtain the macOS Sequoia installers. Attached the image for reference.

Screenshot 2024-07-05 at 2 18 46 PM

Note: There are no restrictions applied to this device. When we execute the terminal commands manually on the same device, they work as expected. However, we see this issue only when we attempt it using the Jamf policy.