Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

automate disksuite installation (jumpstart server)

Status
Not open for further replies.

Bandybe

Technical User
Apr 4, 2002
16
BE
I had a jumpstart server on a solaris 8
I install a server with solaris 8 release 04/01.
In the finisch script of my jumpstart server a copy in /etc/rc3.d S999conf :

/bin/ksh /newinst/bin/autoreboot

/newinst/bin/autoreboot :
#!/bin/ksh
#set -x
conf=/newinst/bin/reboot.conf
ftmp=/tmp/tmp.$$
integer nb=`wc -l $conf|cut -d'/' -f1`
if [ nb -gt 0 ]
then
afaire=`head -1 $conf`
let nb=nb-1
tail -${nb} $conf > $ftmp
mv $ftmp $conf
ksh $afaire
reboot
else
rm /etc/rc3.d/S999conf
fi

in /newinst/bin/reboot.conf :

/newinst/bin/disksuite
/newinst/bin/nrbcluster
/newinst/bin/software

in disksuite :
/newinst/bin/PkgFile.sh . SUNWmdr
/newinst/bin/PkgFile.sh . SUNWmdg
/newinst/bin/PkgFile.sh . SUNWmdu
/newinst/bin/PkgFile.sh . SUNWmdx

in /newinst/bin/PkgFile.sh
#!/bin/sh
ADMIN_FILE=/tmp/admin

cat >${ADMIN_FILE} <<DONT_ASK
mail=root
instance=overwrite
partial=nocheck
runlevel=nocheck
idepend=nocheck
rdepend=nocheck
space=ask
setuid=nocheck
conflict=nocheck
action=nocheck
basedir=default
DONT_ASK

/usr/sbin/pkgadd -a ${ADMIN_FILE} -d /newinst/Packages/$1 $2
rm ${ADMIN_FILE}


and at the boot I have this error

Solstice DiskSuite Drivers
(sparc) 4.2.1,REV=1999.12.03.10.00
Copyright 2000 Sun Microsystems, Inc. All rights reserved.
## Executing checkinstall script.
pkgadd: ERROR: freopen(/dev/tty, &quot;a&quot;, stdout) failed, errno=6 [/color red]
pkgadd: ERROR: checkinstall script did not complete successfully
Installation of <SUNWmdr> failed.
No changes were made to the system


But if I run disksuite script at the command line, everythink goes well.
I install other package with the same procedure et all was ok....

Any one have a idea ?
Andrew
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top