Re: Splitting /usr into multiple inherit-pkg-dir directories Liam Greenwood <liam@unc.edu> writes:
>
>
>The issue I see with this is that one *doesn't* define /usr as
>inherit-pkg-dir - it's a default that is not in the config file.
>Is choosing a sparse-root model an all-or-nothing choice in
>respect of those default dirs?
>
Nope, you can specify /usr as a non-inherited filesystem
when installing that zone. You can use the default the
same as your other zones, and make an exception (re-define
the /usr filesystem) before performing the commit.
I wrote a script where I did exactly that, but I don't have
it in front of me. I should be able to get it by tomorrow,
though.
One caveat: /usr has LOTS of files, so copying them takes
a good amount of time when the zone is created.
An alternative might be to create a symbolic link in the
global zone that points the single file created by the
application to a place that's local/writable by the
non-global zone.
That's not a great solution, but for a single file on a
single zone, it avoids duplicating all of /usr. You can
decide which is better for your server.
-Greg
--
Do NOT reply via e-mail.
Reply in the newsgroup. |