In article <slrnffl7fo.hl5.liamg@w-dhcp01625.wireless.unc.edu>,
Liam Greenwood <liam@unc.edu> wrote:
> 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?
>
> Does anyone have any other ideas?
I loopback mount /usr/local in some of my zones so I can install special
versions of Apache, PHP etc. The zone admin manual describes how to do it:
$ zonecfg -z hosting1-zone export
create -b
set zonepath=/zones/hosting1
set autoboot=true
add inherit-pkg-dir
set dir=/lib
end
add inherit-pkg-dir
set dir=/platform
end
add inherit-pkg-dir
set dir=/sbin
end
add inherit-pkg-dir
set dir=/usr
end
add inherit-pkg-dir
set dir=/opt/sfw
end
add fs
set dir=/usr/local
set special=/zones/hosting1-local
set type=lofs
add options rw
add options nodevices
end
....etc...
--
Sak Wathanasin
Network Analysis Limited
http://www.network-analysis.ltd.uk