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
This commit is contained in:
mellor 2010-05-13 19:05:46 +00:00
parent 3b321e0275
commit 29ab050a48
13 changed files with 305 additions and 0 deletions

View File

@ -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

View File

@ -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

View File

@ -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*

View File

@ -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

View File

@ -0,0 +1,5 @@
# Exclude list for building a minimal diskless image
./usr/lpp/mmfs/include*
./usr/lpp/mmfs/samples*
./usr/lpp/mmfs/src*

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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*

View File

@ -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

View File

@ -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

View File

@ -0,0 +1,5 @@
# Package list for building a minimal diskless image
libibverbs
libibverbs-32bit
libstdc++43-32bit