softwareupdate --download --all attempts to reboot machine in certain conditions (Big Sur)
Originator: | eriknicolasgomez | ||
Number: | rdar://FB9046063 | Date Originated: | 03-17-2021 |
Status: | Open | Resolved: | |
Product: | macOS - softwareupdate | Product Version: | 11.2.2 |
Classification: | Incorrect/Unexpected Behavior | Reproducible: | Yes |
Basic Information Which area are you seeing an issue with? Software Update Please provide a descriptive title for your feedback: softwareupdate --download --all attempts to reboot machine in certain conditions (Big Sur) What type of issue are you reporting? Incorrect/Unexpected Behavior Description Please describe the issue and what steps we can take to reproduce it: When you have an update available that should close an application _and_ an update that requires a reboot, it seems that on Big Sur, you will be force rebooted. On this machine, the user was having all of their applications closed except for an application that hadn't been saved, allowing us to trouble shoot the issue. As you can see when running this command as the user within terminal, it attempts to quit applications. /usr/sbin/softwareupdate --download --all Software Update Tool Finding available software Downloading macOS Big Sur 11.2.3 Downloaded: macOS Big Sur 11.2.3 Attempting to quit apps: ( "com.apple.Compressor" ) Waiting for user to quit any relevant apps Successfully quit all apps Downloaded Pro Video Formats Done. You can then list the installs without any reboot as expected. /usr/sbin/softwareupdate --list Software Update Tool Finding available software Software Update found the following new or updated software: * Label: ProVideoFormats-2.2.1 Title: Pro Video Formats, Version: 2.2.1, Size: 8175K, Recommended: YES, * Label: macOS Big Sur 11.2.3-20D91 Title: macOS Big Sur 11.2.3, Version: 11.2.3, Size: 2383629K, Recommended: YES, Action: restart, Installing the ProVideoFormats update manually results in the expected apps being shutdown, but no attempted reboot. softwareupdate --install ProVideoFormats-2.2.1 Software Update Tool Finding available software Attempting to quit apps: ( "com.apple.Compressor" ) Waiting for user to quit any relevant apps Successfully quit all apps Downloaded Pro Video Formats Installing Pro Video Formats Done with Pro Video Formats Done. Confirming the available update is no longer needed /usr/sbin/softwareupdate --list Software Update Tool Finding available software Software Update found the following new or updated software: * Label: macOS Big Sur 11.2.3-20D91 Title: macOS Big Sur 11.2.3, Version: 11.2.3, Size: 2383629K, Recommended: YES, Action: restart, And re-running download no longer triggers a forced reboot /usr/sbin/softwareupdate --download --all Software Update Tool Finding available software Downloading macOS Big Sur 11.2.3 Downloaded: macOS Big Sur 11.2.3 This was found on an Intel Mac running Big Sur 11.2.2. I imagine this bug is also present in Big Sur 11.3 Beta, but it will be a bit harder to test. I will try and get Big Sur 11.3 Beta 3 and an older version of the Pro Video Codecs, but it will be impossible to test this on Big Sur 11.3 Beta 4 as there will not be any updates available that require a reboot and applications being force closed.
Comments
Please note: Reports posted here will not necessarily be seen by Apple. All problems should be submitted at bugreport.apple.com before they are posted here. Please only post information for Radars that you have filed yourself, and please do not include Apple confidential information in your posts. Thank you!
How to replicate
softwareupdate --list
and confirm you have a Pro Video Format update and Big Sur update availableman softwareupdate
softwareupdate --download --all
Once softwareupdate has finished downloading the updates, safari will be closed but your vi session has prevented the force reboot
You can re-open Safari and rerun
softwareupdate --download --all
to reliably recreate the attempted force rebootIf you would like to see the forced reboot, skip step 4