From 29ab050a48889bee2e7d87dde0e51fc66d5fbe2d Mon Sep 17 00:00:00 2001 From: mellor Date: Thu, 13 May 2010 19:05:46 +0000 Subject: [PATCH] add IBMhpc pklists and exlists for building minimal diskless images git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@6098 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd --- .../compilers/min-compilers.otherpkgs.pkglist | 26 ++++++++ .../IBMhpc/compilers/min-compilers.pkglist | 17 ++++++ .../share/xcat/IBMhpc/essl/min-essl.exlist | 9 +++ .../share/xcat/IBMhpc/essl/min-essl.pkglist | 9 +++ .../share/xcat/IBMhpc/gpfs/min-gpfs.exlist | 5 ++ .../IBMhpc/gpfs/min-gpfs.otherpkgs.pkglist | 6 ++ .../share/xcat/IBMhpc/loadl/min-loadl.exlist | 15 +++++ .../share/xcat/IBMhpc/loadl/min-loadl.pkglist | 20 ++++++ .../xcat/IBMhpc/min-IBMhpc.sles11.cleanup | 35 +++++++++++ .../IBMhpc/min-IBMhpc.sles11.ppc64.exlist | 42 +++++++++++++ .../IBMhpc/min-IBMhpc.sles11.ppc64.pkglist | 55 +++++++++++++++++ .../min-compute.sles11.ppc64.postinstall | 61 +++++++++++++++++++ .../share/xcat/IBMhpc/pe/min-pe.pkglist | 5 ++ 13 files changed, 305 insertions(+) create mode 100755 xCAT-IBMhpc/share/xcat/IBMhpc/compilers/min-compilers.otherpkgs.pkglist create mode 100755 xCAT-IBMhpc/share/xcat/IBMhpc/compilers/min-compilers.pkglist create mode 100755 xCAT-IBMhpc/share/xcat/IBMhpc/essl/min-essl.exlist create mode 100755 xCAT-IBMhpc/share/xcat/IBMhpc/essl/min-essl.pkglist create mode 100755 xCAT-IBMhpc/share/xcat/IBMhpc/gpfs/min-gpfs.exlist create mode 100755 xCAT-IBMhpc/share/xcat/IBMhpc/gpfs/min-gpfs.otherpkgs.pkglist create mode 100755 xCAT-IBMhpc/share/xcat/IBMhpc/loadl/min-loadl.exlist create mode 100755 xCAT-IBMhpc/share/xcat/IBMhpc/loadl/min-loadl.pkglist create mode 100755 xCAT-IBMhpc/share/xcat/IBMhpc/min-IBMhpc.sles11.cleanup create mode 100755 xCAT-IBMhpc/share/xcat/IBMhpc/min-IBMhpc.sles11.ppc64.exlist create mode 100755 xCAT-IBMhpc/share/xcat/IBMhpc/min-IBMhpc.sles11.ppc64.pkglist create mode 100755 xCAT-IBMhpc/share/xcat/IBMhpc/min-compute.sles11.ppc64.postinstall create mode 100755 xCAT-IBMhpc/share/xcat/IBMhpc/pe/min-pe.pkglist diff --git a/xCAT-IBMhpc/share/xcat/IBMhpc/compilers/min-compilers.otherpkgs.pkglist b/xCAT-IBMhpc/share/xcat/IBMhpc/compilers/min-compilers.otherpkgs.pkglist new file mode 100755 index 000000000..21757187d --- /dev/null +++ b/xCAT-IBMhpc/share/xcat/IBMhpc/compilers/min-compilers.otherpkgs.pkglist @@ -0,0 +1,26 @@ +# Compiler rpms for building a minimal diskless image +# These are not needed for runtime compute nodes +# Ensure you do not need any of the commented rpms in your environment + +#compilers/xlmass.lib +compilers/xlsmp.msg.rte +compilers/xlsmp.rte +#compilers/xlsmp.lib +compilers/xlf.msg.rte +compilers/xlf.rte +compilers/xlf.rte.lnk +#compilers/xlf.lib +#compilers/xlf.cmp +#compilers/xlf.help.pdf +#compilers/xlf.samples +#compilers/xlf.man +compilers/vacpp.rte +#compilers/vac.lib +#compilers/vacpp.lib +compilers/vacpp.rte.lnk +#compilers/vac.cmp +#compilers/vacpp.cmp +#compilers/vacpp.help.pdf +#compilers/vacpp.samples +#compilers/vacpp.man + diff --git a/xCAT-IBMhpc/share/xcat/IBMhpc/compilers/min-compilers.pkglist b/xCAT-IBMhpc/share/xcat/IBMhpc/compilers/min-compilers.pkglist new file mode 100755 index 000000000..eaa5d3188 --- /dev/null +++ b/xCAT-IBMhpc/share/xcat/IBMhpc/compilers/min-compilers.pkglist @@ -0,0 +1,17 @@ +# Package list for building minimal diskless image +# currently nothing in this list +# shipping it to keep top-level INCLUDE processing correct + +#libstdc++-devel +#libstdc++43-32bit +#libstdc++43-devel-32bit +#libstdc++43-devel +#cpp +#cpp43 +#gcc +#gcc-c++ +#gcc43 +#gcc43-c++ +#gmp +#libgomp43 +#libmpfr1 diff --git a/xCAT-IBMhpc/share/xcat/IBMhpc/essl/min-essl.exlist b/xCAT-IBMhpc/share/xcat/IBMhpc/essl/min-essl.exlist new file mode 100755 index 000000000..9e365dee5 --- /dev/null +++ b/xCAT-IBMhpc/share/xcat/IBMhpc/essl/min-essl.exlist @@ -0,0 +1,9 @@ +# Exclude list for building a minimal diskless image +# Ensure you do not need any of the files that will be deleted from your image +./opt/ibmmath/essl/*/FFTW3* +./opt/ibmmath/essl/*/include* +./opt/ibmmath/essl/*/lap/lapc + +./opt/ibmmath/pessl/*/lap/*.jar +./opt/ibmmath/pessl/*/example* + diff --git a/xCAT-IBMhpc/share/xcat/IBMhpc/essl/min-essl.pkglist b/xCAT-IBMhpc/share/xcat/IBMhpc/essl/min-essl.pkglist new file mode 100755 index 000000000..7a3d8dab6 --- /dev/null +++ b/xCAT-IBMhpc/share/xcat/IBMhpc/essl/min-essl.pkglist @@ -0,0 +1,9 @@ +# Package list for building a minimal diskless image + +bc +#the following are needed by the license accptance, and removed afterward +xorg-x11-libX11-32bit +xorg-x11-libXau-32bit +xorg-x11-libXext-32bit +xorg-x11-libXp-32bit +xorg-x11-libxcb-32bit diff --git a/xCAT-IBMhpc/share/xcat/IBMhpc/gpfs/min-gpfs.exlist b/xCAT-IBMhpc/share/xcat/IBMhpc/gpfs/min-gpfs.exlist new file mode 100755 index 000000000..ccb5ebe96 --- /dev/null +++ b/xCAT-IBMhpc/share/xcat/IBMhpc/gpfs/min-gpfs.exlist @@ -0,0 +1,5 @@ +# Exclude list for building a minimal diskless image + +./usr/lpp/mmfs/include* +./usr/lpp/mmfs/samples* +./usr/lpp/mmfs/src* diff --git a/xCAT-IBMhpc/share/xcat/IBMhpc/gpfs/min-gpfs.otherpkgs.pkglist b/xCAT-IBMhpc/share/xcat/IBMhpc/gpfs/min-gpfs.otherpkgs.pkglist new file mode 100755 index 000000000..3ba3bff75 --- /dev/null +++ b/xCAT-IBMhpc/share/xcat/IBMhpc/gpfs/min-gpfs.otherpkgs.pkglist @@ -0,0 +1,6 @@ +# GPFS rpms for building a minimal diskless image + +gpfs/gpfs.base +#gpfs/gpfs.gpl +gpfs/gpfs.gplbin* +gpfs/gpfs.msg.en_US diff --git a/xCAT-IBMhpc/share/xcat/IBMhpc/loadl/min-loadl.exlist b/xCAT-IBMhpc/share/xcat/IBMhpc/loadl/min-loadl.exlist new file mode 100755 index 000000000..c3abc9079 --- /dev/null +++ b/xCAT-IBMhpc/share/xcat/IBMhpc/loadl/min-loadl.exlist @@ -0,0 +1,15 @@ +# Exclude list for building a minimal diskless image +# Ensure you do not need any of the files below that will be removed from +# your image +#LoadL +./opt/ibmll/LoadL/resmgr/READMES* +./opt/ibmll/LoadL/resmgr/full/man* +./opt/ibmll/LoadL/resmgr/full/samples* +./opt/ibmll/LoadL/lap/resmgr/*.jar +./opt/ibmll/LoadL/lap/resmgr/LI_* +./opt/ibmll/LoadL/lap/resmgr/LA_* +./opt/ibmll/LoadL/lap/resmgr/license/*.txt +./opt/ibmll/LoadL/lap/scheduler*.jar +./opt/ibmll/LoadL/lap/scheduler/LI_* +./opt/ibmll/LoadL/lap/scheduler/LA_* +./opt/ibmll/LoadL/lap/scheduler/license/*.txt diff --git a/xCAT-IBMhpc/share/xcat/IBMhpc/loadl/min-loadl.pkglist b/xCAT-IBMhpc/share/xcat/IBMhpc/loadl/min-loadl.pkglist new file mode 100755 index 000000000..967bb0e17 --- /dev/null +++ b/xCAT-IBMhpc/share/xcat/IBMhpc/loadl/min-loadl.pkglist @@ -0,0 +1,20 @@ +# Pkglist for building a minimal diskless image + +xorg-x11-libICE +xorg-x11-libSM +xorg-x11-libX11 +xorg-x11-libXau +xorg-x11-libXext +xorg-x11-libXmu +xorg-x11-libXt +xorg-x11-libxcb +xorg-x11-libXfixes +xorg-x11-libXp +xorg-x11-libXpm +xorg-x11-libXprintUtil +xorg-x11-libXrender +xorg-x11-libXv +xorg-x11-libfontenc +xorg-x11-libs +xorg-x11-libxkbfile + diff --git a/xCAT-IBMhpc/share/xcat/IBMhpc/min-IBMhpc.sles11.cleanup b/xCAT-IBMhpc/share/xcat/IBMhpc/min-IBMhpc.sles11.cleanup new file mode 100755 index 000000000..90202746a --- /dev/null +++ b/xCAT-IBMhpc/share/xcat/IBMhpc/min-IBMhpc.sles11.cleanup @@ -0,0 +1,35 @@ +#!/bin/sh +# This script should be run as a postinstall script from genimage when +# creating minimal diskless images +# It will remove various rpms from the image that are probably not needed +# for runtime compute nodes +# Review this script carefully in case you need any of these rpms in your +# image +# +#-- $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 + +#uninstall the ibm-java2 and rpms pulled in by it +rpm -e --root $installroot ibm-java2-ppc64-jre xorg-x11-libX11-32bit xorg-x11-libXau-32bit xorg-x11-libXext-32bit xorg-x11-libXp-32bit xorg-x11-libxcb-32bit + +#uninstall the rpms pulled in by LoadL_resmgr +rpm -e --nodeps --root $installroot xorg-x11-libICE xorg-x11-libSM xorg-x11-libX11 xorg-x11-libXau xorg-x11-libXext xorg-x11-libXfixes xorg-x11-libXmu xorg-x11-libXp xorg-x11-libXpm xorg-x11-libXprintUtil xorg-x11-libXrender xorg-x11-libXt xorg-x11-libXv xorg-x11-libfontenc xorg-x11-libs xorg-x11-libxcb xorg-x11-libxkbfile + +#uninstall the rpms pulled in by vacpp.rte +rpm -e --nodeps --root $installroot gcc gcc-c++ gcc43 gcc43-c++ cpp cpp43 glibc-devel libstdc++43-devel libstdc++43-devel + +#uninstall rpms that should not be on a compute node +rpm -e --root $installroot PolicyKit-doc bash-doc readline-doc perl-doc bootsplash bootsplash-branding-SLES desktop-translations liblcms1 lcms libmng libjpeg libtiff3 fontconfig freetype2 vim-data + +#uninstall yast2 rpms +rpm -e --root $installroot yast2 yast2-bootloader yast2-kdump yast2-packager yast2-storage yast2-branding-SLES yast2-core yast2-hardware-detection yast2-ncurses-pkg yast2-perl-bindings yast2-pkg-bindings yast2-theme-SLE yast2-transfer yast2-xml yast2-ycp-ui-bindings yast2-country-data yast2-libyui yast2-ncurses yast2-storage-lib diff --git a/xCAT-IBMhpc/share/xcat/IBMhpc/min-IBMhpc.sles11.ppc64.exlist b/xCAT-IBMhpc/share/xcat/IBMhpc/min-IBMhpc.sles11.ppc64.exlist new file mode 100755 index 000000000..ed59cae9f --- /dev/null +++ b/xCAT-IBMhpc/share/xcat/IBMhpc/min-IBMhpc.sles11.ppc64.exlist @@ -0,0 +1,42 @@ +# This exclude list should be used when creating minimal diskless images +# It removes a large number of files and directories that are probably not +# needed by runtime compute nodes. +# Review this list carefully to ensure you do NOT need any of the files that +# will be removed from your image +./boot* +./etc/bootsplash/themes/SLES/images* +./opt/sci/include* +./usr/include* +./usr/lib/locale* +./usr/lib/perl5/5.10.0/ppc64-linux-thread-multi/auto/Encode/CN* +./usr/lib/perl5/5.10.0/ppc64-linux-thread-multi/auto/Encode/JP* +./usr/lib/perl5/5.10.0/ppc64-linux-thread-multi/auto/Encode/TW* +./usr/lib/perl5/5.10.0/ppc64-linux-thread-multi/auto/Encode/KR* +./usr/lib/perl5/5.10.0/ppc64-linux-thread-multi/Encode/CN* +./usr/lib/perl5/5.10.0/ppc64-linux-thread-multi/Encode/JP* +./usr/lib/perl5/5.10.0/ppc64-linux-thread-multi/Encode/KR* +./usr/lib/perl5/5.10.0/ppc64-linux-thread-multi/Encode/TW* +./usr/lib64/gcc/powerpc64-suse-linux/4.3/include* +./usr/local/include* +./usr/local/man* +./usr/powerpc64-suse-linux/include* +./usr/share/X11/locale/* ++./usr/share/X11/locale/en_US.UTF-8* ++./usr/share/X11/locale/C* +./usr/share/cracklib* +./usr/share/doc* +./usr/share/doc/packages/cyrus-sasl/doc* +./usr/share/gnome* +./usr/share/i18n* +./usr/share/info* +./usr/share/locale/* ++./usr/share/locale/en_US* ++./usr/share/locale/C* +./usr/share/man* +./usr/share/omf* +./usr/share/vim/site/doc* +./usr/share/vim/vim72/doc* +./usr/share/zoneinfo* +./var/cache/man* +./var/cache/yum* +./usr/share/YaST2/theme* diff --git a/xCAT-IBMhpc/share/xcat/IBMhpc/min-IBMhpc.sles11.ppc64.pkglist b/xCAT-IBMhpc/share/xcat/IBMhpc/min-IBMhpc.sles11.ppc64.pkglist new file mode 100755 index 000000000..08b488782 --- /dev/null +++ b/xCAT-IBMhpc/share/xcat/IBMhpc/min-IBMhpc.sles11.ppc64.pkglist @@ -0,0 +1,55 @@ +# OS packages that are useful for all IBM HPC products +# This list should only be used when creating a minimal diskless image +# It does NOT include many standard rpms that you may expect to be installed, +# but that are probably not required for a runtime compute node. +# Review this list carefully to ensure you do NOT need any of the rpms +# that are not being included. + +#systemtap +#kernel-source +#linux-kernel-headers +kdump +yast2-kdump +crash +#make +iputils +gdb +powerpc-utils +timezone +ntp +rsh-server +#libnuma1-32bit +at +#numactl +#libnuma1 +#libpython2_6-1_0 +xinetd +ksh +rsh +binutils + +glibc-32bit +libgcc43-32bit +libstdc++33 + +#gcc-32bit +#gcc +#gcc-c++ +#gcc43-32bit +#gcc43 +#gcc43-c++ +#glibc-devel +#glibc-devel-32bit + +#xorg-x11-libX11-32bit +#xorg-x11-libXp-32bit +#xorg-x11-libXau-32bit +#xorg-x11-libXext-32bit +#xorg-x11-libxcb-32bit +#xorg-x11-libXmu +#xorg-x11-libXmu-32bit +#xorg-x11-libs +#xorg-x11-libs-32bit +#xorg-x11-libX11 +#xorg-x11-libXext + diff --git a/xCAT-IBMhpc/share/xcat/IBMhpc/min-compute.sles11.ppc64.postinstall b/xCAT-IBMhpc/share/xcat/IBMhpc/min-compute.sles11.ppc64.postinstall new file mode 100755 index 000000000..0e55f4936 --- /dev/null +++ b/xCAT-IBMhpc/share/xcat/IBMhpc/min-compute.sles11.ppc64.postinstall @@ -0,0 +1,61 @@ +#!/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 + +hpc=/install/custom/netboot/sles/ling/ +otherpkgs=/install/post/otherpkgs/$osver/$arch + + +# Run default postinstall shipped with xcat +/opt/xcat/share/xcat/netboot/sles/compute.sles11.postinstall $1 $2 $3 $4 $5 + + +# Run general IBMhpc postinstall script +$hpc/IBMhpc.sles.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 +installroot=$installroot pedir=$otherpkgs/pe NODESETSTATE=genimage $hpc/pe/pe_install + + +# Run script to install ESSL and PESSL rpms +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 +installroot=$installroot rsctdir=$otherpkgs/rsct NODESETSTATE=genimage $hpc/rsct/rsct_install + + +# Clean up +$hpc/min-IBMhpc.sles11.cleanup $1 $2 $3 $4 $5 diff --git a/xCAT-IBMhpc/share/xcat/IBMhpc/pe/min-pe.pkglist b/xCAT-IBMhpc/share/xcat/IBMhpc/pe/min-pe.pkglist new file mode 100755 index 000000000..2cae61938 --- /dev/null +++ b/xCAT-IBMhpc/share/xcat/IBMhpc/pe/min-pe.pkglist @@ -0,0 +1,5 @@ +# Package list for building a minimal diskless image + +libibverbs +libibverbs-32bit +libstdc++43-32bit