Hi!!
I'am sending this mail on Mr Michael Bennett behalf,
Unixspecialist
International Financial Futures & Options Exchange
London
Michael.Bennett@liffe.com
This script was part of the summary sent to the sunmanagers Tue, 8
Apr 1997 from jliu@eur.ericsson.com (Jeffrey Liu), its about how
to create a finish script to install CDE a few things were missing
and have been added in the end of this mail. It should solve the
problem with the postinstall script
For your CDE:
pkgadd -d /tmp/install_config/CDE/cde-min -R /a SUNWdticn
cd /tmp/install_config/CDE/CDE-min
pkgadd -d . -R /a SUNWdtbas <<EOF
y
y
y
EOF
rm -rf /a/usr/SUNWdtbas
pkgadd -d /tmp/install_config/CDE/cde-min -R /a SUNWdtdmn
pkgadd -d /tmp/install_config/CDE/cde-min -R /a SUNWdtdte <<EOF
y
y
y
EOF
pkgadd -d /tmp/install_config/CDE/cde-min -R /a SUNWdtft
pkgadd -d /tmp/install_config/CDE/cde-end-user -R /a SUNWdtdst <<EOF
y
EOF
for f in dthe dthev dtim dtreme dtwm
do
pkgadd -d /tmp/install_config/CDE/cde-end-user -R /a SUNW${f}
done
#
# Enable CDE dtlogin environment
#
chroot /a /usr/dt/bin/dtconfig -e
chroot /a /usr/dt/bin/dtconfig -reset
****** This has been added
The problem is with the postinstall script held in the SUNWdtbas/install
directory.
It does not contain a statement to deal with jumpstart installations. It
should contain a statement within it, which should reflect the
following:
if [ -x /usr/bin/tic ]
then
# Note that the following directory test statement should reflect
the
# jumpstart mount point where your company mounts the JumpStart
Rules
# directory onto! This is the default!
if [ -d /tmp/install_config ]
then
# This is a JumpStart
chroot /a /usr/bin/tic /usr/dt/config/dtterm.ti
if [ $? -eq 0 ]
then
exit 0
else
exit 1
fi
else
# This is a normal installation
/usr/bin/tic /usr/dt/config/dtterm.ti
if [ $? -eq 0 ]
then
exit 0
else
exit 1
fi
fi
fi
If you need to change this or any other postinstall file first
edit it and then you must do the following:
wc -c postinstall
It will return with the character count, say:
439 postinstall # note the first variable is the
significant
You then need to obtain the sum count:
sum postinstall
It will return with the sum count, say:
32474 1 postinstall # Note the first variable is the
significant
With this information, backup the pkgmap file in this case the SUNWdtbas
directory, and edit the pkgmap file. Go to the bottom of the file, and
change the entry:
1 i postinstall 258 17769 829279015
to:
1 i postinstall <wc -c cnt> <sum cnt> 829279015
For my example, it would reflect:
1 i postinstall 439 32474 829279015
Save the file, and do your jumpstart.
Note that the pkgmap file has to be modified otherwise when the pkgadd
does it
test of the consistency of the package, it will not install it because it
will reject the software on the basis that
the sum and wc counts are not equal to what's in the pkgmap file
The script was made by Mr Michael Bennet, UNIX Specialist,
London International Financial Futures & Options Exchange
Mike.Bennett@liffe.com 0171 379 2745
Thanks
---Richard
This archive was generated by hypermail 2.1.2 : Fri Sep 28 2001 - 23:12:00 CDT