[zones-discuss] Creating users and SMF services in SVR4 packages with zones

2008-07-14 Thread Will Murnane
I'm trying to revamp my packages to work better in zones. Currently they use groupadd and useradd, like so: %pre /usr/sbin/groupadd -g 27 mysql /usr/sbin/useradd -u 27 -d /var/lib/mysql -s /bin/false -G mysql mysql and to add or remove services, I have lines like this in my spec files: %post /usr/

Re: [zones-discuss] Creating users and SMF services in SVR4 packages with zones

2008-07-21 Thread Will Murnane
On Tue, Jul 15, 2008 at 11:46, Jordan Brown <[EMAIL PROTECTED]> wrote: > Before diving too far down this rathole... aren't the package scripts > run in the context of the zone? I did some testing with this, and it appears that the postinstall scripts aren't being run in the right context when the p