Peter Tribble wrote:
> On Tue, 2006-04-11 at 15:51, Gary M. Gere wrote:
>   
>>> Anyone know offhand how the package install order is determined?
>>>       
>> The order in which packages are installed is influenced by the dependencies 
>> each package
>> declares in the "depend(4)" file. The remaining order is non-deterministic - 
>> for initial install it is
>> typically the order in which the packages are declared in the clustertoc, 
>> for a zone install it is the
>> order in which the packages are returned when reading the "/var/sadm/pkg" 
>> directory.
>>     
>
> OK. So I rewrote /var/sadm/pkg so that the packages should get returned
> in
> size order, just to see what difference it makes to a zone install.
>
> And it does make a slight difference. Package installation time went
> from
> just over 6 minutes to just over 5; total disk writes fell from 6.5G to
> 4.1G.
>
> But it's still mangling the install order quite considerably.
>
> Unfortunately I don't think LU (I think zone creation calls
> lucreatezone)
> has been opened yet. Nor the main installer. So it's hard for me to
> investigate this part any further.
>
>   
When you invoke 'zoneadm install', it pretty quickly calls 
'lucreatezone' to perform the
actual zone installation - all of the file copying and package 
initialization is done by
lucreatezone.

Given that 98% of the packages declare dependencies, and that there are 
over 10,000
dependencies declared, I am not surprised that the installation order is 
highly sorted.

-GmG




Reply via email to