salopensource / sal-scripts

Apache License 2.0
23 stars 31 forks source link

Use platform_UUID as fallback for catalina devices #99

Closed octomike closed 2 years ago

octomike commented 2 years ago

We still have a number of Catalina devices in our org. Currently, the model cache is named None.txt, because provisioning_UDID was introduced with Big Sur it seems.

# cat /usr/local/sal/model_cache/None.txt 
MacBook Pro (Retina, Mid 2012)lip-osx-001284:checkin_modules root# sw_vers 
ProductName:    Mac OS X
ProductVersion: 10.15.7
BuildVersion:   19H1824
# cat /usr/local/sal/model_cache/None.txt 
MacBook Pro (Retina, Mid 2012)

This PR adds a trivial fallback to platform_UUID as a unique device identifier, which goes back to at least 10.12.