#!/sbin/sh
#
# Andrei.Ryjov@post.ch  AKA  aryzhov@excite.com
#
# Install VxVM with [ out ] chroot
# (because dynamic links go crasy if $BOOTED != $TARGET
#
# But in any case, run all encapsulating and initialising
# things from chroot
#

. $JSINCLUDE/Subroutines || exit 1
SetRootOpts ; [ X$ROOT != X/ ] && exec Chroot_Script $0 $*
JHOST=160.59.197.5
SI_MEDIA=/tmp/cdrom
mkdir -p $SI_MEDIA 2>&-
mount -m $JHOST:/export/jumpstart/test/media $SI_MEDIA || ShellMe "No Veritas media"
REQUEST_FILE=/tmp/Request
echo "REQ_OS_VERS=$TOSREL" >$REQUEST_FILE

DIR=$SI_MEDIA/Packages/Veritas/4.0r-beta/volume_manager/pkgs
PKGLIST="VRTSvlic VRTSvmman VRTSvxvm"
PKGOPTS="-d $DIR $ROOTOPTS -a $PKGADMIN_FILE -r $REQUEST_FILE `echo $PKGLIST`"

MakeAdminFile
pkgadd $PKGOPTS 2>&1 | grep "Installation of"
echo $LICENSE    | /sbin/vxlicinst || ShellMe "No Veritas license"

VxEncap
