How to Un-inherit-pkg-dir

From: Crist Clark (Crist.Clark@globalstar.com)
Date: Thu Mar 06 2008 - 16:43:32 EST


I've got a non-global zone that has the default four
directories from the global zone set to inherit-pkg-dir,
/lib, /platform, /sbin, and /usr. However, now it is
turning out that we have some (poorly assembled) software
that is insisting on being installed in /usr/local.
Obviously, this does not work with /usr mounted as a
read-only loopback.

My initial response was to bring down the zone, copy the
global /usr to the zone's /usr and then just un-inherit
the directory. However, the zonecfg(1M) is not allowing
me to un-inherit,

        zonecfg:ainterdoc> remove inherit-pkg-dir dir=/usr
        Zone ainterdoc already installed; remove inherit-pkg-dir not
allowed.

Is there a way to force the removal without destroying
(uninstalling) the zone?

A workaround I've thought of is to do something like,

        # cd /zone/ainterdoc/root/opt
        # (cd /usr ; tar cf - local) | tar xf -

Then add an entry into the non-global zone's vfstab to
loopback mount its /opt/local over /usr/local. The
problem with this is that any future packages or patches
to things installed in the global /usr/local be inconsistent
in the zone. The files will not be touched, but the /var/sadm
database will. (Right?)

As for future installations, anyone have a workaround for
this kind of problem so we can still share /usr, but have
/usr/local unique to the zone for broken software
installations?

BB<information contained in this e-mail message is confidential, intended
only for the use of the individual or entity named above. If the reader
of this e-mail is not the intended recipient, or the employee or agent
responsible to deliver it to the intended recipient, you are hereby
notified that any review, dissemination, distribution or copying of this
communication is strictly prohibited. If you have received this e-mail
in error, please contact postmaster@globalstar.com
_______________________________________________
sunmanagers mailing list
sunmanagers@sunmanagers.org
http://www.sunmanagers.org/mailman/listinfo/sunmanagers



This archive was generated by hypermail 2.1.7 : Wed Apr 09 2008 - 23:42:50 EDT