Possible macOS AutoPkg recipe?

29 views
Skip to first unread message

John Lockwood

unread,
Nov 3, 2022, 6:16:41 AM11/3/22
to autopkg-discuss
First thanks once again to Greg Neagle for the new Munki 6 which has the capability to do a staged macOS install.

Looking at this, and being aware of Greg's installinstallmacos.py script it seems like the following might be possible.

  1. The script be modified to use either the embedded python built-in to AutoPkg or to the python built-in to Munki (the former would make more sense)
  2. The script be modified so that via an AutoPkg recipe parameter it looks for the latest version of a specific macOS major release e.g. 13 = Ventura, this parameter would be supplied via a recipe override
  3. If newer than any current macOS installer in e.g. the Munki repo that latest version is then downloaded as a disk image
  4. It is then added to the Munki repo as a staged macOS install

This is not intended to be used as a way to do minor macOS updates - which Munki does not support but to provide the latest installer for full-blown macOS upgrades.

Note: It might also be possible to deliberately exclude any beta versions. This could again be another recipe parameter and should be the default setting.

Question - If hypothetically a Mac is running Ventura 13.0.2 and the above suggested recipe has added a Ventura 13.1 installer will Munki try installing it? Obviously it would not if the Mac was running Ventura 13.1 or 13.2 already.

John Lockwood

unread,
Nov 3, 2022, 7:12:47 AM11/3/22
to autopkg-discuss
Small update.

Having just re-run installinstallmacos.py it looks like it would make. more sense for the parameter to specify which major macOS version to download used the 'Title' i.e. 'macOS Ventura' as this should be easier to filter on.

Reply all
Reply to author
Forward
0 new messages