bp88 / JSS-Scripts

Random scripts for use in the Jamf Pro
188 stars 61 forks source link

OS updates do not install on T2 machines #6

Closed patgmac closed 5 years ago

patgmac commented 5 years ago

I have found that on T2 machines, the update does not actually finish installing after the reboot. I believe this is because the way the script is rebooting the system. I have had success by using the --restart flag with softwareupdate, which knows how to handle shutdown vs restart depending on the update.

I'm working on creating a PR for this now.

bp88 commented 5 years ago

Do you have steps to reproduce this? Host OS Version? Hardware Model? What update is being installed? Any log results? Usually softwareupdate will log to /var/log/install.log

bp88 commented 5 years ago

@patgmac I finally got my hands on a MacBook Pro where I could reproduce the issue and it had a firmware update that required a shutdown. The latest version of my script should now properly take the right shutdown or restart action.