Built-in support for the import and use of macOS Installer applications to perform macOS upgrades
Introduction
Munki 3 adds 'native' support for using the
startosinstall tool – included inside the macOS installer application since 10.11 – to install macOS upgrades.
This feature is new in Munki 3.
Background
Prior to the release of Munki 3, the supported method of performing OS upgrades was to use the
createOSXinstallPkg toolset to create an installer package from an 'Install macOS Foo.app' application. You'd then import the installer package and manage it like any other package.
10.12.4 dealt a serious blow to the
createOSXinstallPkg toolset: Apple changes made it now impossible to include additional packages as part of the install. Additionally, Apple changed the location and functionality of brtool , a tool used to set up the macOS install boot on CoreStorage volumes. With some effort, basic functionality of createOSXinstallPkg is working again under 10.12.4 (and later), but it appears that the ability to add additional packages is lost forever due to new security measures by Apple. (10.13 changes further break createOSXinstallPkg and there is no plan to address these changes.)
In addition, if one examines the contents of the
/macOS Install Data folder after a 10.12 createOSXinstallPkg package completes preparation for a macOS install, and compares that to the contents of the /macOS Install Data folder after startosinstall completes preparation for a macOS install, it's clear that createOSXinstallPkg does not set things up the same way -- that over time, Apple has changed details of the set up process, and createOSXinstallPkg has not kept pace.
Given the breakage and the pace of change, it seemed prudent to focus efforts on a mechanism that is at least somewhat-Apple supported, even if it provides less flexibility and functionality than
createOSXinstallPkg did. Adobe flash player for mac gratuity.
How To + Recommended. How to Tell if Adobe Flash Player Update is Valid. Posted on March 8th, 2013 by Derek Erwin There have been a lot of articles lately about security problems with Flash Player and recommendations to update Adobe plug-ins.
Importing a macOS installermunkiimport , makepkginfo , and iconimporter now have support for macOS installers.
Use
munkiimport /Applications/Install macOS Sierra.app to wrap the installer in a disk image and import it into your Munki repo. You may also import an existing diskimage containing a copy of 'Install macOS Sierra.app'.
Add the item to a manifest as you would any other Munki item.
Avoiding Unsupported Hardware
Munki will gladly offer the OS install on hardware that is not capable of running that particular release, if you add the item to managed_installs or optional_installs. You can use logic like the one found here for Mojave to do a conditional item and prevent this from looping at the worst, or polluting logs with errors and warnings at the least. An alternative implementation is here: https://github.com/munki/munki-facts/blob/master/facts/mojave_upgrade_supported.py
Munki 3.1 changesstartosinstall OS upgrade pkginfo items can now contain an additional array of strings, which are added as additional options to the startosinstall binary. For example:
No guarantees that these additional options will actually work or be supported by Apple in future releases; testing is your responsibility, bugs are Apple's.
![]() Implementation notes
You don't need to add installs items or receipts to the pkginfo item for an imported Install macOS Sierra.app. Munki knows how to tell if the target Mac already has the same major.minor (or a higher major.minor) version installed.
In the vein of https://github.com/munki/munki/wiki/How-Munki-Decides-What-Needs-To-Be-Installed -- Munki simply checks the major.minor OS version. If your
startosinstall item installs 10.12.4, any version of macOS 10.12 is enough to satisfy Munki. This prevents Munki from offering a 45-minute install of 10.12.4 to machines running 10.12-10.12.3 and 'masking' a softwareupdate Delta/Combo Update to 10.12.4. (This also matches the behavior you would get when using a package built with createosxinstallpkg and this installs array: https://github.com/munki/munki/wiki/Installing-OS-X#sierra)
A macOS installer that is a pending update will be installed after all other items in managed_installs. It's automatically considered an apple_item, so Apple software updates will not be checked for or installed in the same session.
Adobe Flash Player For Mac Os X
As with other Munki items that require a restart after install, Managed Software Center will trigger a logout before starting the install session. All other pending managed_installs will be installed first; the macOS upgrade will be started last. If
startosinstall completes successfully, it will trigger a reboot. Munki will exit after doing a subset of the actions it normally does at the end of a Munki run. Adobe flash player for mac advanced mac cleaner removal. Currently that includes running a postflight script (if one exists) with a special runtype of 'startosinstall'.
Before the reboot, however, Munki will create the
/Users/Shared/.com.googlecode.munki.checkandinstallatstartup Adobe flash player download for chrome. file, which will cause Munki to enter 'bootstrapping mode' after the OS upgrade is complete. See Bootstrapping With Munki for more detail on this subject.
Marking other items as
|
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |