Version: 1.0

Posted: 2007-06-12

Build Requirements: Xcode Tools 3.0 and Mac OS X version 10.5.

Runtime Requirements: Mac OS X version 10.5 and System Image Utility version 10.5

View Source Code:

Download Sample (“ApplyFirmwarePassword.zip”, 95.8K)
Download Sample (“ApplyFirmwarePassword.dmg”, 143.0K)



Description

System Administrators can use package installers to customize the deployment workflow created by System Image Utility. While package installers are typically leveraged for software installation, they also function well as shell script containers. Shell scripts have been used for deployments for years, but they tend to make managed mass deployment daunting for less experienced system administrators. This example demonstrates how to build an AppleScript-based, System Image Utility Automator Action that conceals the complexities of a shell-based post-restore task.

This Automator Action includes a shell payload-free package installer. When run, the action will copy the package to /tmp and modify parameters in the postflight script to match user choices. System Image Utility passes an image information dictionary as input to each Automator Action in the workflow. By adding the package's path to the packageList array within this imageInfo dictionary, System Image Utility's Create Image action will copy the referenced package installer into the NetInstall set, and the client will install that package at restore time. The package installer won't actually install anything, but will then run the modified postflight script.

Document Revision History

Date Notes
2007-06-12First Version
2007-06-12First Version

Did this document help you?
Yes: Tell us what works for you.
It’s good, but: Report typos, inaccuracies, and so forth.
It wasn’t helpful: Tell us what would have helped.