Jumpstart Finish script problems with pkgadd -d

From: Roelf Schreurs (rosc@imc.nl)
Date: Wed Jan 22 2003 - 05:20:03 EST


Hi

I have a problem installing extra packages with pkgadd.
It seems like I have problems with the "-d" flag.

Here is the pkgadd.sh script.
PS. The package directory is correct (packages/packages)

[root@jumpstart Scripts]# more pkginstall.sh
#!/bin/sh
# This script installs specific packages. If you add any packages,
# you MUST update this script

BASEDIR=/a
SI_CONFIG_DIR=/tmp/install_config
ADMINFILE=$SI_CONFIG_DIR/packages/packages/admin_pkgadd_options
PKGDIR=$SI_CONFIG_DIR/packages/packages

echo "test"
touch /a/tmp/test

echo "Installing apache.."
/usr/sbin/pkgadd -a $ADMINFILE -d $PKGDIR/apache-1.3.27-sol8-sparc-local
\ -R $BASEDIR apache

The packages are not installed and I get the following in the finish.log

Starting finish script: pkginstall.sh

test
Installing apache..
pkgadd: ERROR: no packages were found in </var/tmp/dstreAAADqaq1w>
Installing bc..

While installing the system, I brought up a console and tried to run
these commands by hand.
When I tried the command without the "-a" flag it works. But with the
"-d" flag, it get stuck.

My admin_pkgadd_options file:

[root@jumpstart Scripts]# more ../packages/packages/admin_pkgadd_options
#ident "@(#)default 1.4 92/12/23 SMI" /* SVr4.0 1.5.2.1 */
mail=
instance=unique
partial=default
runlevel=default
idepend=default
rdepend=default
space=default
setuid=default
conflict=default
action=default
basedir=default

What I will try so long is to change the admin_pkgadd_options file to:
  mail=root
   instance=overwrite
   partial=nocheck
   runlevel=nocheck
   idepend=nocheck
   rdepend=nocheck
   space=ask
   setuid=nocheck
   conflict=nocheck
   action=nocheck
   basedir=default
   DONT_ASK

Any other ideas will be welcome.

Thanks

-- 
Roelf Schreurs
IMC Amsterdam
+31 20 798 8457
Chaos reigns within.
Reflect, repent, and reboot.
Order shall return.
_______________________________________________
sunmanagers mailing list
sunmanagers@sunmanagers.org
http://www.sunmanagers.org/mailman/listinfo/sunmanagers


This archive was generated by hypermail 2.1.7 : Wed Apr 09 2008 - 23:25:38 EDT