HP Insight Control for Linux 6.0 User Guide

GATEWAY
GATEWAYDEV
IMAGESERVER
The script is run in a chroot environment so there is no need to configure paths relative to the
HP Insight Control for Linux environment.
For information on how these scripts can be used, see the comments in the example scripts
provided with Insight Control for Linux.
10.1.3 Predeployment, postdeployment, and final deployment scripts
Like the Precapture and Postcapture scripts, the Predeployment, Postdeployment, and Final
Deployment scripts enable you to prepare or sanitize a captured image easily, but in this case
before deploying it. You can use one of the deployment scripts to undo what a Precapture or
Predeployment script did, or to perform some other action afterward.
A Predeployment script is run on the managed system before the image is deployed in the Insight
Control for Linux RAM disk.
A Postdeployment script is run on the managed system in the Insight Control for Linux RAM
disk after the image is deployed.
Final Deployment scripts are similar to Postdeployment scripts in that they run after the
deployment has finished, except that they are run in the environment of the newly-deployed
operating system.
All these scripts are optional; the default behavior is to not run any script.
Predeployment, Postdeployment, and Final Deployment scripts are Linux shell scripts; for more
information on adding, removing and managing them, see Section 6.2.5 (page 69).
10.1 Overview of capturing and deploying Linux images 111