Cathy Zhou wrote:
> Cathy Zhou wrote:
>> Peter Memishian wrote:
>>>  > I can see why we should remove tmp/var/svc/log, but I don't get 
>>> why we also  > need to remove .tmp_proto/var/svc/log? If 
>>> .tmp_proto/var/svc/log is unpacked  > to /tmp, /var/svc/log should be 
>>> available and read/write anyway.
>>>
>>> What would be the benefit of spreading the logs across two different
>>> directories, when they're both tmpfs?
>>>
> I tested this fix, and it works. SMF all logs to the 
> etc/svc/volatile/*.log. But I could't find where those two directories 
> are created in the code. Maybe Dave knows.
> 

There's nothing in the install code which explicitly creates it; rather, 
we just don't delete it.

The miniroot is constructed using a list of packages which are then 
installed to a directory in the file system (buildmr is the tool used in 
development; RE uses cdkit, which does basically the same thing).  One 
of the packages that's installed is SUNWsibi, which is delivered by the 
Install consolidation (see src/bundled/pkg/SUNWsibi).  Its pkgmap, 
preinstall, and postinstall scripts apply a set of customizations which 
include creating the /tmp/root area and then /.tmp_proto, which is used 
to populate /tmp after the tmpfs mount, as you've seen.  In this case, 
the postinstall script likely just needs to be modified to explicitly 
delete /var/svc/log along with the other things it cleans out of /var 
during this process, then you'll be in business.

BTW, to be clear, meem and I had already discussed this suggested fix 
before his mail and I'm happy with it.

Dave

Reply via email to