|Skip Navigation Links|
|Exit Print View|
|Packaging and Delivering Software With the Image Packaging System in Oracle Solaris 11.1 Oracle Solaris 11.1 Information Library|
Normally, unpackaged contents are salvaged when the containing directory is removed, because the last reference to it disappears.
When a directory changes names, IPS treats this as the removal of the old directory and the creation of a new one. Any editable files that are still in the directory when the directory is renamed or removed are salvaged.
If the old directory has unpackaged content such as log files that should be moved to the new directory, use the salvage-from attribute on the new directory. For example, if pkgA renames a directory from /opt/olddata/log to /opt/newdata/log, then in the version of pkgA that makes this change, include the following attribute on the dir action that creates /opt/newdata/log:
Any unpackaged contents of any time are migrated to the new location.
The salvage-from attribute is discussed again in Delivering Directories To Be Shared Across Boot Environments.