-
Notifications
You must be signed in to change notification settings - Fork 62
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
Reboot issues with macOS Sonoma #110
Comments
If you do that, I saw IAs not able to fully clean itself up. I moved to this method to combat issues around that. |
Ah, thanks. That explains the 5 second delay. Hmm. I submitted FB13135892, but now I'm second-guessing myself. Needs more testing. This works OK on beta 7:
(it looks like I was quoting things wrong - I don't usually use Since that's exactly what IAs is doing, I'm not sure what's wrong here. |
Because I needed to have something for today, here's what I settled on. I shoved this at the end of the script that finishes up and quits DEPNotify:
It's the last script that runs, so once the computer reboots, |
Is anyone else using the reboot functionality with IAs?
We're running an older build, and with IAs set to reboot at the end of bootstrapping, we're finding Macs running macOS Sonoma beta 7 do not reboot. IAs writes to the logs that the Mac is rebooting, then IAs cleans up after itself.
Here's the relevant code:
https://github.com/macadmins/installapplications/blob/main/payload/Library/installapplications/installapplications.py#L415-L419
Running
/usr/bin/osascript -e delay 5 -e tell application "System Events" to restart
manually doesn't seem to do anything on macOS Sonoma beta 7, either, so I don't think this is an IAs-specific issue.Any objection to changing this to something like
/sbin/shutdown -r now
instead?The text was updated successfully, but these errors were encountered: