Mike Gerdts wrote:
> On 8/7/07, Dave Miner <Dave.Miner at sun.com> wrote:
>> Are the zones whole-root, or sparse (i.e. do they have any
>> inherit-pkg-dir directives in the zone configuration)? In the case of a
>> sparse zone, packages which install into inherited areas will not have
>> the scripts run.
>
> Can you comment more on the intended logic here?
>
> - Does a single file installed into /etc trigger the scripts to be run?
> - Does a single file installed into a non-inherited directory cause
> the scripts to run?
>
I should have been more precise, but:
- no scripts are run if the package is hollow
- a preinstall script will always be run if the package is not hollow
- class-action scripts are not run if the files in the class are in an
inherited area
- for postinstall, the logic is (from pkginstall/main.c):
/*
* fresh installing into non-global zone, no object was
* updated (installed/verified in non-inherited area),
* and and at least one object was skipped (verified in
* inherited area) - this means all objects were skipped
* so do not run the postinstall script.
*/
Dave