When loading HP-UX patches from SD depots, the files that
are patched are normally saved, just in case you want to remove
the patch at a later date. However, doing this takes up additional
space in the /var directory, so you may want to turn this feature off.
The way you control this feature depends on whether you are
loading HP-UX 10.x or 11.0/11i. It also differs
if the patches are coming from the Core depot and being controlled
by the hw_patches_cfg config file. See /opt/ignite/share/doc/ace_hwe_setup for more info on hw_patches_cfg.
For HP-UX 10.x releases
Control this feature by the existence of the file /var/adm/sw/patch/PATCH_NOSAVE. If you don't want to save the patched files,
then you need to have a pre_load_cmd that touches this file. pre_load_cmd can be at the global level or in the sw_source for the patch depot. You can remove this file
in a post_load_cmd if you want this feature re-enabled after the
load is done. For example:
pre_load_cmd += "
mkdir -p /var/adm/sw/patch
touch /var/adm/sw/patch/PATCH_NOSAVE"
# Put PATCH_NOSAVE back to the way it was.
post_load_cmd += "
rm -f /var/adm/sw/patch/PATCH_NOSAVE
"
For patches in the core depot that are loaded via the hw_patches_cfg config file, PATCH_NOSAVE is always created and put back the way it was after
the core load is complete. See this file for details: /opt/ignite/data/Rel_B.10.20/hw_patches_cfg
For HP-UX 11.0/11i releases
Control this feature by this option in the swinstall command:
-xpatch_save_files=false|true
You can use the sd_command_line keyword, either at the global level or within
individual sw_source clauses depending on if you want it specified
for all loads or just certain ones.
For patches in the Core depot, this option is specified by
the /opt/ignite/date/Rel.B.11.*/hw_patches_cfg file. It is controlled by the config file variable: _hp_patch_save_files and is listed on the Additional Configuration
Controls screen.
To specify this option at the global level (for example in
the /var/opt/ignite/config.local file), you can add the line:
sd_command_line += " -xpatch_save_files=false "
To default the variable controlling the Core patches to "NO",
add the following to config.local (which must be listed after hw_patches_cfg in the INDEX file):
init _hp_patch_save_files = "NO"