Go to main content

Packaging and Delivering Software With the Image Packaging System in Oracle® Solaris 11.4

Exit Print View

Updated: November 2018
 
 

Packaging for System Migration and System Cloning

Revert tags help ensure proper system operation across system migration and system cloning, particularly for certain types of software such as device drivers.

The following examples show how to use revert tags. See also the description of the revert-tag attribute for file and dir actions in Package Content: Actions and Oracle Solaris Revert Tags.

Example 1  Clear a Device Driver’s Cache File During System Migration

The following action in a package manifest tags the file /etc/MYdev/cache with the system:dev-init revert tag. Files with this tag revert to their manifest-defined content during system migration and system cloning.

file path=etc/MYdev/cache revert-tag=system:dev-init owner=root group=sys mode=0644
Example 2  Clear an Application’s Log Files During System Cloning

The following action in a package manifest tags all in the /var/MYapp/logs directory with the system:dev-init revert tag. The =* after revert-tag=system:dev-init means tag all files in this directory with the system:dev-init tag. All files in this directory will removed during system migration and system cloning.

dir path=var/MYapp/logs revert-tag=system:dev-init=* owner=root group=sys mode=0755