Skip to content

Fix latest Big Sur upgrade not detected

Adrien Kohlbecker requested to merge ak/fix-upgrade into main

What does this MR do?

Make sure to detect that a Big Sur upgrade has been downloaded and we need to restart, otherwise it doesn't get installed, which makes jobs like https://gitlab.com/gitlab-org/ci-cd/shared-runners/images/macstadium/orka/-/jobs/1507263232 fail

Why was this MR needed?

The output doesn't contain "Please restart" like it used to

gitlab@Gitlabs-iPro ~ % softwareupdate --install --recommended
Software Update Tool

Finding available software
Downloading macOS Big Sur 11.5.2
Downloading: 100.00%
Downloaded: macOS Big Sur 11.5.2
gitlab@Gitlabs-iPro ~ % softwareupdate --list                 
Software Update Tool

Finding available software
Software Update found the following new or updated software:
* Label: macOS Big Sur 11.5.2-20G95
        Title: macOS Big Sur 11.5.2, Version: 11.5.2, Size: 5630116K, Recommended: YES, Action: restart, 

What's the best way to test this MR?

What are the relevant issue numbers?

Merge request reports