I found the following description in README.pkg.

 Zones and Packages
 ------------------

 pkg(5) uses variants to implement zones.  If a package is marked
 with both global and non-global zone variants, the package contents will
 be installed in both global and non-global by default.
         set name=variant.opensolaris.zone value=global value=nonglobal

 Specific actions within a package can be tagged as applying to only
 the global zone or only the non-global zones.

 The global_zone_only_component transform described above is also
 available to simplify a common packaging scenario.

This sounds to me that in my case (two kinds of contents; one is for the global
zone ony (i.e. driver) and the other is for both (i.e. smf service)), I should
use separate packages (one for driver, the other for smf service).

Am I right?

Thanks,

-Eiji



> Hi all,
> 
> I have a question about how to deliver the global-zone and all zone
> binaries w/ the IPS package.
> 
> To deliver the new SMF service for the driver, is it a good idea to
> use the same IPS package for both?
> 
> The driver should be installed on the global zone only but the smf service
> should be able to be installed on any non-global zones, and to deliver
> these binaries/files, now I'm wondering if it's OK to use the current IPS
> package of the driver. It looks we can deliver both of the contents by
> deleting "<include global_zone_only_component>" from the package but adding
> "variant.opensolaris.zone=__NODEFAULT" instead (or by just deleting
> "<include global_zone_only_component>").
> 
> Or should I use a new/different IPS package to deliver the smf service
> but the driver package should have the "global_zone_only_component" inside?
> 
> Thanks,
> 
> -Eiji
> 
_______________________________________________
on-ips-dev mailing list
[email protected]
http://mail.opensolaris.org/mailman/listinfo/on-ips-dev

Reply via email to