On Thu, Jun 04, 2009 at 07:07:36PM -0700, Kevin Pan wrote:
> I don't understand your statement that OpenSolaris 2009.06 does not support 
> sparse zone. I would appreciate if you could clarify what you meant by "We 
> don't have sparse zones in 2009.06..."
>
> I thought by using the commands "add inherit-pkg-dir", "set dir=/xxx" (for 
> /lib, /platform, /sbin and /usr) would create so-called sparse-zones on 
> OpenSolaris 2009.06. In fact, I have just successfully doen this a few 
> mintues ago.
>

um.  don't do that.

the "inherit-pkg-dir" property is only applicable to solaris distros
which use SVR4 packaging.  (this means solaris 10 and SXCE).  it is not
applicable to opensolaris system.  using it on opensolaris based systems
will result in undefined behaviors and unsupporable configurations.

we actually have a bug filed on this issue:
        567 ipkg zones verify callback should abort if it sees inherit-pkg-dir
        http://defect.opensolaris.org/bz/show_bug.cgi?id=8567

the fix for this bug will verify that ipkg brand zone configurations
don't have any inherit-pkg-dir properties, and if they do the
configuration will be reported as invalid.

> The difference between Solaris 10 and OpenSolaris is that, on Solaris 10 by 
> using the "create" would automatically inherit all the 4 directories 
> mentioned above, and by using "create -b" would create a "whole-root" zone. 
> On OpenSolaris, however, by using "create" (without the -b option) would be 
> creating whole-root zones as it does not inherit any directories from the 
> global zones. It would be nice also if you could explain what is the 
> rationale behind this difference. Thanks!

the reason for the difference is that SRV4 packaging is very different
from ipkg.  Solaris 10 is based of SRV4 packaging and opensolaris is
based off of ipkg.  ipkg will enable us to do lots of things we couldn't
with SRV4 packaging.  one of the things we will be able to do is have
different contents installed in the global zone and non-global zones.
hence inherit-pkg-dir doesn't make a whole lot of sense in this context.

ed
_______________________________________________
zones-discuss mailing list
zones-discuss@opensolaris.org

Reply via email to