Software Distributor Administration Guide HP-UX 11i v1, 11i v2, and 11i v3 (5900-2488, September 2012)

/stand/system cannot be accomplished from within the postinstall scripts, but instead must
be accomplished by the configure scripts. This occurs whenever software is installed to a
directory other than root(/).
This variable should be read only by the configure and postinstall scripts of a kernel fileset.
11.4.3.2 SW_INITIAL_INSTALL
This variable is normally unset. If it is set, the swinstall session is being run as the back
end of an initial system software installation (that is, a “cold” install).
11.4.3.3 SW_KERNEL_PATH
The path to the kernel. The default value is /stand/vmunix.
11.4.3.4 SW_SESSION_IS_KERNEL
Indicates whether a kernel build is scheduled for the current install/remove session.
A “true” value indicates that the selected kernel fileset is scheduled for a kernel build and that
changes to /stand/system are required.
A null value indicates that a kernel build is not scheduled and that changes to /stand/system
are not required.
The value of this variable is always equal to the value of SW_SESSION_IS_REBOOT.
11.4.3.5 SW_SESSION_IS_REBOOT
Indicates whether a reboot is scheduled for a fileset selected for removal. Because all HP-UX
kernel filesets are also reboot filesets, the values of this variables is always equal to the value
of SW_SESSION_IS_KERNEL.
11.4.3.6 SW_SYSTEM_FILE_PATH
The path to the kernel’s system file. The default value is /stand/system.
11.4.4 Variables That Affect swverify
11.4.4.1 SW_IS_COMPATIBLE
Designed to help you determine if installed software is incompatible and should be removed
from a system.
For use during the execution of a verify script, which is called by the swverify command.
The variable will be set to true if the software being considered is compatible with the system
on which it is installed.
Set to false if the software being considered incompatible with the system on which it is
installed.
11.4.5 Environment Variables That Affect swinstall, swremove and swconfig in SRP
11.4.5.1 SW_ALLOW_LOCAL_SRP_OPS
This variable is usually not set. If it is set to TRUE or 1, this variable allows swinstall to run on
a system container. If a value other than TRUE or 1 is specified, or if a value is not specified, the
system container does not support swinstall.
11.5 Execution of Control Scripts
This section details how each control script is executed.
216 Using Control Scripts