Producing and Maintaining Packages
Overview
Best Practices
| # | Title | Description |
|---|---|---|
| 1 | path attribute should be relative | The path attribute for the file, dir and link actions should be relative (not absolute) |
| 2 | The target attribute of the link action should be relative. | target should be relative to the location specified by path |
| 3 | Files should be owned by "root" with group "sys" | Unless specific users are required by the product, all file and dir actions should set the owner attribute to "root" and the group attribute to "sys" |
| 4 | Do not use the link action on Windows packages | The link action is not currently supported on Windows |
Details
1. path attribute should be relative
2. The target attribute of the link action should be relative
3. Files should be owned by "root" with group "sys"
Due to a limitation in IPS (see [ IPS bug 870 | http://defect.opensolaris.org/bz/show_bug.cgi?id=870 ]) the owner and group values for a file must be valid on all (Unix) OSes, even though for user images the files will typically be owned by the user performing the installation.
Based on anecdotal evidence, we believe that these values are fairly ubiquitous on Unix systems (on Windows the group and owner attributes are not used)