HP XC System Software Administration Guide Version 3.2

3. In the /var/lib/systemimager/scripts directory, create symbolic links to this master
autoinstallation script for the nodes that will receive this override.
The symbolic link names must follow the format name.sh, where name is the host name
of each node to receive the override.
For further information on using overrides in the SystemImager environment, see the FAQ
chapter in the SystemImager Manual, located at the following web address:
http://systemimager.org/doc
The following example describes how to set up an override to enable a compiler package to be
delivered only to the nodes with the login role:
1. Create an overrides subdirectory, named compiler, to contain the compiler package:
# cd /var/lib/systemimager/overrides
# mkdir ./compiler
2. Verify that there are two subdirectories, named base_image and compiler, under the
./overrides directory.
# # ls -F
base_image/ compiler/ README
3. Install the compiler package into the alternate root location,
/var/lib/systemimager/overrides/compiler.
# rpm -ivh --root \
/var/lib/systemimager/overrides/compiler compilername.rpm
4. Use the find command to verify the file hierarchy:
# find ./compiler
./compiler
./compiler/usr
./compiler/usr/lib/
.
.
.
5. Change directory to the SystemImager “scripts” directory:
# cd /var/lib/systemimager/scripts
6. Make a copy of the default HP XC autoinstallation script as a new script to image the login
nodes specifically with the compiler overrides. Name the new autoinstallation script
compiler.master.0:
# cp base_image.master.0 compiler.master.0
7. Use the text editor of your choice to modify the OVERRIDES variable definition in the
compiler.master.0 file as follows:
[ -z $OVERRIDES ] && OVERRIDES="base_image compiler"
It is necessary to append compiler after the string base_image because the default HP
XC installation relies on the base_image override
Save the file and exit the text editor.
8. Use the text editor of your choice to edit the /etc/systemimager/flamethrower.conf
file to add a new compiler override at the end of the file:
[override_compiler]
DIR = /var/lib/systemimager/overrides/compiler
Save the file and exit the text editor.
9. Link all the login nodes (that is, those nodes with the lvs service) to the
compiler.master.0 autoinstallation script
142 Distributing Software Throughout the System