2010-09-17 06:47:36 +00:00
|
|
|
#!/bin/sh
|
|
|
|
# Sample postinstall script for building a diskless SLES11 PPC64 image
|
|
|
|
# with all IBM HPC products
|
|
|
|
#
|
|
|
|
#-- this script is run after all packages from $profile.pkglist are installed
|
|
|
|
#--
|
|
|
|
#-- it gets these arguments:
|
|
|
|
#--
|
|
|
|
#-- $1 = install root (chroot directory for profile)
|
|
|
|
#-- $2 = OS version
|
|
|
|
#-- $3 = architecture
|
|
|
|
#-- $4 = profile name
|
|
|
|
#-- $5 = work dir (where genimage is located)
|
|
|
|
#--
|
|
|
|
#--
|
|
|
|
installroot=$1
|
|
|
|
osver=$2
|
|
|
|
arch=$3
|
|
|
|
profile=$4
|
|
|
|
workdir=$5
|
|
|
|
|
|
|
|
otherpkgs=/install/post/otherpkgs/$osver/$arch
|
|
|
|
|
2011-02-23 17:39:13 +00:00
|
|
|
################
|
|
|
|
# This script runs other postinstall scripts from the $hpc directory
|
|
|
|
# If you have created a custom copy of ANY of these scripts,
|
|
|
|
# make sure to change the execution path from $hpc/<product> to the location
|
|
|
|
# you have placed your script in
|
|
|
|
###############
|
|
|
|
hpc=/opt/xcat/share/xcat/IBMhpc
|
|
|
|
custom=/install/custom/netboot/rh
|
|
|
|
installps=/install/postscripts
|
2010-09-17 06:47:36 +00:00
|
|
|
|
|
|
|
# Run default postinstall shipped with xcat
|
2011-01-27 09:09:52 +00:00
|
|
|
/opt/xcat/share/xcat/netboot/rh/compute.rhels6.ppc64.postinstall $1 $2 $3 $4 $5
|
2010-09-17 06:47:36 +00:00
|
|
|
|
|
|
|
|
|
|
|
# Run general IBMhpc postinstall script
|
|
|
|
$hpc/IBMhpc.rhel.postinstall $1 $2 $3 $4 $5
|
|
|
|
|
|
|
|
|
|
|
|
# Run script to install gpfs updates
|
|
|
|
installroot=$installroot NODESETSTATE=genimage $hpc/gpfs/gpfs_updates
|
|
|
|
# Run script to update GPFS mmsdrfs file in the image
|
|
|
|
installroot=$installroot $hpc/gpfs/gpfs_mmsdrfs
|
|
|
|
|
|
|
|
|
|
|
|
# Run script to accept compiler license
|
|
|
|
installroot=$installroot NODESETSTATE=genimage $hpc/compilers/compilers_license
|
|
|
|
|
|
|
|
|
|
|
|
# Run script to install PE and accept license
|
2012-05-02 05:30:27 +00:00
|
|
|
installroot=$installroot pedir=$otherpkgs/pe NODESETSTATE=genimage $hpc/pe/pe_install-1200
|
2010-09-17 06:47:36 +00:00
|
|
|
|
|
|
|
|
|
|
|
# Run script to install ESSL and PESSL rpms
|
2012-06-01 06:31:07 +00:00
|
|
|
#installroot=$installroot essldir=$otherpkgs/essl NODESETSTATE=genimage $hpc/essl/essl_install
|
2010-09-17 06:47:36 +00:00
|
|
|
|
|
|
|
|
|
|
|
# Run script to accept LoadLeveler license, install product rpms,
|
|
|
|
# and do some config
|
2012-05-22 04:33:52 +00:00
|
|
|
installroot=$installroot loadldir=$otherpkgs/loadl NODESETSTATE=genimage $hpc/loadl/loadl_install-5103
|
2010-09-17 06:47:36 +00:00
|
|
|
|
|
|
|
# Run script to install RSCT rpms
|
|
|
|
installroot=$installroot rsctdir=$otherpkgs/rsct NODESETSTATE=genimage $hpc/rsct/rsct_install
|
|
|
|
|
|
|
|
|