2010-03-22 16:11:46 +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
|
|
|
|
|
2010-04-05 02:25:33 +00:00
|
|
|
hpc=/opt/xcat/share/xcat/IBMhpc
|
|
|
|
otherpkgs=/install/post/otherpkgs/$osver/$arch
|
|
|
|
|
|
|
|
|
2010-03-22 16:11:46 +00:00
|
|
|
# Run default postinstall shipped with xcat
|
|
|
|
/opt/xcat/share/xcat/netboot/sles/compute.sles11.postinstall $1 $2 $3 $4 $5
|
|
|
|
|
2010-04-05 02:25:33 +00:00
|
|
|
|
2010-03-22 16:11:46 +00:00
|
|
|
# Run general IBMhpc postinstall script
|
2010-04-05 02:25:33 +00:00
|
|
|
$hpc/IBMhpc.sles.postinstall $1 $2 $3 $4 $5
|
|
|
|
|
2010-03-22 16:11:46 +00:00
|
|
|
|
|
|
|
# Run script to install gpfs updates
|
2010-04-05 02:25:33 +00:00
|
|
|
installroot=$installroot NODESETSTATE=genimage $hpc/gpfs/gpfs_updates
|
2010-03-22 16:11:46 +00:00
|
|
|
# Run script to update GPFS mmsdrfs file in the image
|
2010-04-05 02:25:33 +00:00
|
|
|
installroot=$installroot $hpc/gpfs/gpfs_mmsdrfs
|
2010-03-22 16:11:46 +00:00
|
|
|
|
|
|
|
|
|
|
|
# Run script to accept compiler license
|
2010-04-05 02:25:33 +00:00
|
|
|
installroot=$installroot NODESETSTATE=genimage $hpc/compilers/compilers_license
|
2010-03-22 16:11:46 +00:00
|
|
|
|
|
|
|
|
2010-04-05 02:25:33 +00:00
|
|
|
# Run script to install PE and accept license
|
|
|
|
installroot=$installroot pedir=$otherpkgs/pe NODESETSTATE=genimage $hpc/pe/pe_install
|
2010-03-22 16:11:46 +00:00
|
|
|
|
|
|
|
|
|
|
|
# Run script to install ESSL and PESSL rpms
|
2010-04-05 02:25:33 +00:00
|
|
|
installroot=$installroot essldir=$otherpkgs/essl NODESETSTATE=genimage $hpc/essl/essl_install
|
2010-03-22 16:11:46 +00:00
|
|
|
|
|
|
|
|
|
|
|
# Run script to accept LoadLeveler license, install product rpms,
|
|
|
|
# and do some config
|
2010-04-05 02:25:33 +00:00
|
|
|
installroot=$installroot loadldir=$otherpkgs/loadl NODESETSTATE=genimage $hpc/loadl/loadl_install
|
2010-03-22 16:11:46 +00:00
|
|
|
|