From f80d6abe962b6b7e41d3a6292da55f5fd6798732 Mon Sep 17 00:00:00 2001 From: wanghuaz Date: Wed, 7 Mar 2012 12:40:40 +0000 Subject: [PATCH] added otherpkg,exclude,pkglist list and postinstall script for generall hpc integration packages on x86_64/rhels6.2 git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@11783 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd --- .../xcat/IBMhpc/IBMhpc.rhels6.x86_64.exlist | 34 ++++++++++ .../xcat/IBMhpc/IBMhpc.rhels6.x86_64.pkglist | 31 +++++++++ .../xcat/IBMhpc/compute.rhels6.x86_64.exlist | 3 + .../compute.rhels6.x86_64.otherpkgs.pkglist | 2 + .../xcat/IBMhpc/compute.rhels6.x86_64.pkglist | 2 + .../IBMhpc/compute.rhels6.x86_64.postinstall | 65 +++++++++++++++++++ 6 files changed, 137 insertions(+) create mode 100644 xCAT-IBMhpc/share/xcat/IBMhpc/IBMhpc.rhels6.x86_64.exlist create mode 100644 xCAT-IBMhpc/share/xcat/IBMhpc/IBMhpc.rhels6.x86_64.pkglist create mode 100644 xCAT-IBMhpc/share/xcat/IBMhpc/compute.rhels6.x86_64.exlist create mode 100644 xCAT-IBMhpc/share/xcat/IBMhpc/compute.rhels6.x86_64.otherpkgs.pkglist create mode 100644 xCAT-IBMhpc/share/xcat/IBMhpc/compute.rhels6.x86_64.pkglist create mode 100644 xCAT-IBMhpc/share/xcat/IBMhpc/compute.rhels6.x86_64.postinstall diff --git a/xCAT-IBMhpc/share/xcat/IBMhpc/IBMhpc.rhels6.x86_64.exlist b/xCAT-IBMhpc/share/xcat/IBMhpc/IBMhpc.rhels6.x86_64.exlist new file mode 100644 index 000000000..f717a5bcc --- /dev/null +++ b/xCAT-IBMhpc/share/xcat/IBMhpc/IBMhpc.rhels6.x86_64.exlist @@ -0,0 +1,34 @@ +./boot* +./usr/share/wallpapers/RHEL6/contents/images* +./usr/include* +./usr/lib/locale* +./usr/lib64/perl5/Encode/CN* +./usr/lib64/perl5/Encode/JP* +./usr/lib64/perl5/Encode/TW* +./usr/lib64/perl5/Encode/KR* +./lib/kbd/keymaps/i386* +./lib/kbd/keymaps/mac* +./lib/kdb/keymaps/include* +./usr/local/include* +./usr/local/share/man* +./usr/share/man* +./usr/share/cracklib* +./usr/share/doc* +./usr/share/doc/packages/cyrus-sasl/doc* +./usr/share/gnome* +./usr/share/i18n* ++./usr/share/i18n/en_US* +./usr/share/info* +./usr/share/locale/* ++./usr/share/locale/en_US* ++./usr/share/locale/C* ++./usr/share/locale/locale.alias ++./usr/lib/locale/locale-archive ++./usr/lib/locale/en* +./usr/share/man* +./usr/share/omf* +./usr/share/vim/site/doc* +./usr/share/vim/vim72/doc* +./usr/share/zoneinfo* +./var/cache/man* +./var/lib/yum* diff --git a/xCAT-IBMhpc/share/xcat/IBMhpc/IBMhpc.rhels6.x86_64.pkglist b/xCAT-IBMhpc/share/xcat/IBMhpc/IBMhpc.rhels6.x86_64.pkglist new file mode 100644 index 000000000..744113a4d --- /dev/null +++ b/xCAT-IBMhpc/share/xcat/IBMhpc/IBMhpc.rhels6.x86_64.pkglist @@ -0,0 +1,31 @@ +# OS packages that are useful for all IBM HPC products +#INCLUDE:/opt/xcat/share/xcat/netboot/rh/compute.rhels6.x86_64.pkglist# + +xinetd +rsh +rsh-server +at +sed +ksh +sudo + +libXmu.x86_64 +libXtst.x86_64 +libXp.x86_64 +libXp.i686 +libXScrnSaver.x86_64 + +gcc.x86_64 +gcc-c++.x86_64 +libgcc.i686 +libgcc.x86_64 +libstdc++.i686 +libstdc++.x86_64 +libstdc++-devel.i686 +libstdc++-devel.x86_64 +compat-libstdc++-33.i686 +compat-libstdc++-33.x86_64 +glibc-devel.i686 +glibc-devel.x86_64 + +redhat-lsb.x86_64 diff --git a/xCAT-IBMhpc/share/xcat/IBMhpc/compute.rhels6.x86_64.exlist b/xCAT-IBMhpc/share/xcat/IBMhpc/compute.rhels6.x86_64.exlist new file mode 100644 index 000000000..a5834cf4a --- /dev/null +++ b/xCAT-IBMhpc/share/xcat/IBMhpc/compute.rhels6.x86_64.exlist @@ -0,0 +1,3 @@ +#INCLUDE:/opt/xcat/share/xcat/IBMhpc/IBMhpc.rhels6.x86_64.exlist# +#INCLUDE:/opt/xcat/share/xcat/IBMhpc/gpfs/gpfs.exlist# +#INCLUDE:/opt/xcat/share/xcat/IBMhpc/pe/pe.exlist# diff --git a/xCAT-IBMhpc/share/xcat/IBMhpc/compute.rhels6.x86_64.otherpkgs.pkglist b/xCAT-IBMhpc/share/xcat/IBMhpc/compute.rhels6.x86_64.otherpkgs.pkglist new file mode 100644 index 000000000..9d74dbdfe --- /dev/null +++ b/xCAT-IBMhpc/share/xcat/IBMhpc/compute.rhels6.x86_64.otherpkgs.pkglist @@ -0,0 +1,2 @@ +#INCLUDE:/opt/xcat/share/xcat/IBMhpc/gpfs/gpfs.rhels6.x86_64.otherpkgs.pkglist# +#INCLUDE:/opt/xcat/share/xcat/IBMhpc/pe/pe.rhels6.x86_64.otherpkgs.pkglist# diff --git a/xCAT-IBMhpc/share/xcat/IBMhpc/compute.rhels6.x86_64.pkglist b/xCAT-IBMhpc/share/xcat/IBMhpc/compute.rhels6.x86_64.pkglist new file mode 100644 index 000000000..e8242401e --- /dev/null +++ b/xCAT-IBMhpc/share/xcat/IBMhpc/compute.rhels6.x86_64.pkglist @@ -0,0 +1,2 @@ +#INCLUDE:/opt/xcat/share/xcat/IBMhpc/IBMhpc.rhels6.x86_64.pkglist# +#INCLUDE:/opt/xcat/share/xcat/IBMhpc/pe/pe.rhels6.x86_64.pkglist# diff --git a/xCAT-IBMhpc/share/xcat/IBMhpc/compute.rhels6.x86_64.postinstall b/xCAT-IBMhpc/share/xcat/IBMhpc/compute.rhels6.x86_64.postinstall new file mode 100644 index 000000000..a7c934f2a --- /dev/null +++ b/xCAT-IBMhpc/share/xcat/IBMhpc/compute.rhels6.x86_64.postinstall @@ -0,0 +1,65 @@ +#!/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 + +################ +# 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/ to the location +# you have placed your script in +############### +hpc=/opt/xcat/share/xcat/IBMhpc +custom=/install/custom/netboot/rh +installps=/install/postscripts + +# Run default postinstall shipped with xcat +/opt/xcat/share/xcat/netboot/rh/compute.rhels6.x86_64.postinstall $1 $2 $3 $4 $5 + + +# 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. x86_64 is using gcc, comment this line. +#installroot=$installroot NODESETSTATE=genimage $hpc/compilers/compilers_license + + +# Run script to install PE and accept license +installroot=$installroot pedir=$otherpkgs/pe NODESETSTATE=genimage $hpc/pe/pe_install-1200 + + +# Run script to install ESSL and PESSL rpms. Not available on x86_64. +#installroot=$installroot essldir=$otherpkgs/essl NODESETSTATE=genimage $hpc/essl/essl_install + + +# Run script to accept LoadLeveler license, install product rpms, +# and do some config +#installroot=$installroot loadldir=$otherpkgs/loadl NODESETSTATE=genimage $hpc/loadl/loadl_install + +# Run script to install RSCT rpms. Not available on x86_64 +#installroot=$installroot rsctdir=$otherpkgs/rsct NODESETSTATE=genimage $hpc/rsct/rsct_install