mario heimel wrote:
> hi enda,
> 
> we have paid a lot of money for the package and it is not alternate root 
> aware.
Out of interest who did you purchase the package from, was it from Sun 
or some third party.
To be honest, this package is not really acceptable on many fronts as 
you have just seen, I'd be interested in knowing who is charging money 
for such work, be it Sun or otherwise.
If it's Sun then at least I can talk to them.


Enda
> i have changed and simplified the procedure scripts.
> 
> when i create a new zone now the only problem is the user- and groupadd in 
> the preinstall script. 
> the user and groupadd had no problem during a pkgadd to the global and a 
> running non-global zone.
> 
> the pkgadd failed, because there are no passwd, shadow and group files at 
> this time.
> 
> what is the recommended way to add users and groups with preinstall scripts 
> in a alternate root (lu, jumpstart, zone-install) ? i find no information in 
> the documentation. 
> 
> 
> 
> preinstall script
> #!/bin/sh
> 
> group=`grep audit4u ${PKG_INSTALL_ROOT}/etc/group`
> if [ "$group" = "" ]; then
>    if [ "${PKG_INSTALL_ROOT}" = "" ]; then
>         groupadd -g  1922 audit4u
>    else
>         /usr/sbin/chroot ${PKG_INSTALL_ROOT} /usr/sbin/groupadd -g  1922 
> audit4u
>    fi
> fi
> 
> user=`grep audit4u ${PKG_INSTALL_ROOT}/etc/passwd`
> if [ "$user" = "" ]; then
>    if [ "${PKG_INSTALL_ROOT}" = "" ]; then
>         useradd -d /export/home/audit4u -m -s /usr/bin/ksh -g 1922 -u 1922 -c 
> "technischer User fuer Audit4U" audit4u
>    else
>         /usr/sbin/chroot ${PKG_INSTALL_ROOT} /usr/sbin/useradd -d 
> /export/home/audit4u -m -s /usr/bin/ksh -g 1922 -u 1922 -c "technischer User 
> fuer Audit4U" audit4u
>    fi
> fi
> 
> 
> pkgadd failed during zone creation:
> *** package <audit4u-agents> failed to install with fatal errors:
> 
> grep: can't open /export/home/test03/root/etc/group
> UX: groupadd: ERROR: Cannot update system files - group cannot be created.
> grep: can't open /export/home/test03/root/etc/passwd
> UX: /usr/sbin/useradd: ERROR: group 1922 does not exist.  Choose another.
> pkgadd: ERROR: preinstall script did not complete successfully
> 
> Installation of <audit4u-agents> on zone <test03> failed.
> 
> 
> 
> thanks for your time
> Mario
>  
>  
> This message posted from opensolaris.org
> _______________________________________________
> install-discuss mailing list
> install-discuss at opensolaris.org
> http://mail.opensolaris.org/mailman/listinfo/install-discuss


Reply via email to