HP XC System Software Administration Guide Version 3.2

# for i in $(expandnodes $(shownode servers lvs))
do
ln -sf compiler.master.0 $i.sh
done
10. Verify that the links are correct
# ls -l
.
.
.
lrwxrwxrwx 1 root root ... n7.sh -> compiler.master.0
lrwxrwxrwx 1 root root ... n8.sh -> compiler.master.0
lrwxrwxrwx 1 root root ... n9.sh -> compiler.master.0
Now the system can be imaged. In this example, when nodes n[7-9] are installed with the full
imaging installation, the compiler overrides are automatically delivered after the golden image
has been delivered.
The following example creates a file override for a specific node, n8. The criteria for the override,
for example, node type or services provided, is not addressed.
1. Create the appropriate subdirectory for the node under the
/var/lib/systemimager/overrides directory:
# cd /var/lib/systemimager/overrides
# mkdir n8_override
2. Copy the appropriate files into the new n8_override directory.
Remember to create the appropriate directories for these files. For example, if you want to
specify the /etc/vimrc file, then you must also create the etc subdirectory. For example:
# pwd
/var/lib/systemimager/overrides
# cd n8_override
# mkdir etc
# cd etc
# cp /etc/vimrc .
3. Change directory to the SystemImager scripts directory:
# cd /var/lib/systemimager/scripts
4. Copy the base_image.master.0 file to use as the basis for the new override file,
n8_override.master.0:
# cp base_image.master.0 n8_override.master.0
5. Use the text editor of your choice to modify the OVERRIDES variable definition in the
n8_override.master.0 file. Append the name of the override directory you added in
the first step.
[ -z $OVERRIDES ] && OVERRIDES="base_image n8_override"
Save the file and exit the text editor.
6. Create any necessary links to the override master file you created and edited in the last two
steps:
# ln -sf n8_override.master.0 n8_override.sh
All the nodes to be overriden must be linked.
7. Use the text editor of your choice to edit the /etc/systemimager/flamethrower.conf
file.
Add an entry near the end of the file for the directory you created in the first step. In this
example, add the entries shown in bold:
[base_image]
DIR = /var/lib/systemimager/images/base_image
11.3 Adding Software or Modifying Files on the Golden Client 143