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

2008-07-15 Thread James Carlson
Ralf Weber writes: or your zone path when the package gets created inside a zone. So I would rewrite your scripts as: [...] ${BASEDIR}/usr/sbin/chroot ${BASEDIR} /usr/sbin/groupadd -g 27 mysql ${BASEDIR}/usr/sbin/chroot ${BASEDIR} /usr/sbin/useradd -u 27 -d /var/ lib/mysql -s

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

2008-07-15 Thread Jordan Brown
James Carlson wrote: Jordan Brown writes: Before diving too far down this rathole... aren't the package scripts run in the context of the zone? Yes, for the specific issue of running a script in a zone, but in general, you can't chroot to $BASEDIR and expect any good to come of it.