[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Runtime directories: in package or by scripts?



2013/3/10 Andrey Rahmatullin <wrar@wrar.name>:
> On Sun, Mar 10, 2013 at 04:24:52PM +0400, Игорь Пашев wrote:
>> I'm creating packages with programs which use some directories for
>> persistent data.
>> E. g. dladm will use /etc/dladm to save data in.
> The proper path is /var/lib/dladm.

Sorry, I was not accurate. It is system vital data needed for early boot:
http://illumos.org/man/1M/dladm

>> What is the best way to ship such a diretory:
>> in package (d/foo.dirs) or create in postinst script?
> Why postinst?

Because on removal there will be a message "cannot remove directory",
if there are file in that directory.


Reply to: