Packaging Best Practices - Contents

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)

4. Do not use the link action on Windows packages
Enter labels to add to this page:
Please wait 
Looking for a label? Just start typing.

Sign up or Log in to add a comment or watch this page.


The individuals who post here are part of the extended Sun Microsystems community and they might not be employed or in any way formally affiliated with Sun Microsystems. The opinions expressed here are their own, are not necessarily reviewed in advance by anyone but the individual authors, and neither Sun nor any other party necessarily agrees with them.

Copyright 1994-2009 Sun Microsystems, Inc.
Powered by Atlassian Confluence
Sun Guidelines on Public Discourse Privacy Policy Terms of Use Trademarks Site Map Employment Investor Relations Contact