Using a new method to install PE packages. otherpkgs now accept system environment, so we can use this way to install pe licience rpm
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@12029 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
This commit is contained in:
parent
512795a33e
commit
63bc149a82
@ -0,0 +1,14 @@
|
||||
pe/src
|
||||
pe/ibm_openshmem_*
|
||||
|
||||
#ENV:IBM_PPE_RTE_LICENSE_ACCEPT=yes#
|
||||
pe/ppe_rte_license*
|
||||
|
||||
#ENV:INUCLIENTS=1#
|
||||
#ENV:INUBOSTYPE=1#
|
||||
pe/pperteman*
|
||||
pe/pperterh6x*
|
||||
pe/ppertesamples*
|
||||
|
||||
# PE HPC toolkit needed on login node
|
||||
#pe/ppedev_hpct_*
|
3
xCAT-IBMhpc/share/xcat/IBMhpc/pe/pe.rhels6.pkglist → xCAT-IBMhpc/share/xcat/IBMhpc/pe/pe-1200.ppc64.pkglist
Executable file → Normal file
3
xCAT-IBMhpc/share/xcat/IBMhpc/pe/pe.rhels6.pkglist → xCAT-IBMhpc/share/xcat/IBMhpc/pe/pe-1200.ppc64.pkglist
Executable file → Normal file
@ -7,4 +7,5 @@
|
||||
# that does a force install of pe. The current pe packages prereq
|
||||
# these libibverbs packages.
|
||||
libibverbs.ppc
|
||||
libibverbs.ppc64
|
||||
libibverbs.ppc64
|
||||
|
@ -0,0 +1,14 @@
|
||||
pe/src
|
||||
pe/ibm_openshmem_*
|
||||
|
||||
#ENV:IBM_PPE_RTE_LICENSE_ACCEPT=yes#
|
||||
pe/ppe_rte_license*
|
||||
|
||||
#ENV:INUCLIENTS=1#
|
||||
#ENV:INUBOSTYPE=1#
|
||||
pe/pperteman*
|
||||
pe/pperterh6x*
|
||||
pe/ppertesamples*
|
||||
|
||||
# PE HPC toolkit needed on login node
|
||||
#pe/ppedev_hpct_*
|
@ -1,2 +0,0 @@
|
||||
pe/src
|
||||
pe/ibm_openshmem_*
|
@ -19,61 +19,6 @@
|
||||
# - Configure poe.limits file
|
||||
|
||||
OS=`uname`
|
||||
INSTALL_DIR='/install'
|
||||
PE_DIR=$pedir
|
||||
|
||||
if [ -z "$PE_DIR" ]; then
|
||||
# try to default
|
||||
PE_DIR=$INSTALL_DIR/post/otherpkgs/$OSVER/$ARCH/pe
|
||||
fi
|
||||
|
||||
|
||||
if [ $NODESETSTATE != "genimage" ]; then
|
||||
# running as a postscript in a full-disk install or AIX diskless install
|
||||
installroot=""
|
||||
fi
|
||||
|
||||
|
||||
|
||||
if [ $OS != "AIX" ]; then
|
||||
if [ $NODESETSTATE == "install" ] || [ $NODESETSTATE == "boot" ]; then
|
||||
# Being run from a stateful install postscript
|
||||
# Copy rpms directly from the xCAT management node and install
|
||||
mkdir -p /tmp/pe
|
||||
rm -f -R /tmp/pe/*
|
||||
cd /tmp/pe
|
||||
# download_dir=`echo $PE_DIR | cut -d '/' -f3-`
|
||||
# wget -l inf -N -r --waitretry=10 --random-wait --retry-connrefused -t 10 -T 60 -nH --cut-dirs=5 http://$SITEMASTER/$PE_DIR/*.rpm 2> /tmp/wget.log
|
||||
wget -l inf -N -r --waitretry=10 --random-wait --retry-connrefused -t 10 -T 60 -nH --cut-dirs=6 --reject "index.html*" --no-parent http://$SITEMASTER$PE_DIR/ 2> /tmp/wget.log
|
||||
if [ ! -f /opt/ibmhpc/pe1200/sbin/accept_ppe_license.sh ] ; then
|
||||
IBM_PPE_RTE_LICENSE_ACCEPT=yes rpm -Uvh ppe_rte_license*.rpm
|
||||
fi
|
||||
IBM_PPE_RTE_LICENSE_ACCEPT=yes /opt/ibmhpc/pe1200/sbin/accept_ppe_license.sh
|
||||
rpm -Uvh --force ppe*.rpm
|
||||
cd /
|
||||
rm -Rf /tmp/pe
|
||||
fi
|
||||
|
||||
if [ $NODESETSTATE == "genimage" ]; then
|
||||
# Being called from <image>.postinstall script
|
||||
# Assume we are on the same machine
|
||||
if [[ $OS = sles* ]] || [[ $OS = suse* ]] || [[ -f /etc/SuSE-release ]]; then
|
||||
# For SLES, assume zypper is available on the system running genimage
|
||||
# Install PE license rpm into image
|
||||
IBM_PPE_RTE_LICENSE_ACCEPT=yes zypper -R $installroot install $PE_DIR/ppe_rte_license*.rpm
|
||||
# Install PE product rpms
|
||||
INUCLIENTS=1 INUBOSTYPE=1 zypper -R $installroot install $PE_DIR/pperte*
|
||||
else
|
||||
# For Redhat, etc., assume yum is available on the system running genimage
|
||||
# Install PE license rpm into image
|
||||
IBM_PPE_RTE_LICENSE_ACCEPT=yes yum -y --installroot $installroot --nogpgcheck install $PE_DIR/ppe_rte_license*.rpm
|
||||
# Install PE product rpms
|
||||
INUCLIENTS=1 INUBOSTYPE=1 yum -y --installroot $installroot --nogpgcheck install $PE_DIR/ppe_rte* $PE_DIR/pperte*
|
||||
fi
|
||||
fi
|
||||
fi
|
||||
|
||||
|
||||
|
||||
# Configure the PNSD.cfg to use a smaller log so it doesn't use so much memory
|
||||
# for a stateless image. Normally, pnsd creates this file if it does not
|
||||
|
Loading…
Reference in New Issue
Block a user