Updated GPFS integration to use otherpkg and pkg list to install gpfs rpms
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/branches/2.7@12444 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
This commit is contained in:
parent
ad9443ab47
commit
5ebe7d4122
@ -0,0 +1,4 @@
|
||||
gpfs/gpfs.base
|
||||
gpfs/gpfs.gpl
|
||||
gpfs/gpfs.gplbin*
|
||||
gpfs/gpfs.msg.en_US
|
@ -0,0 +1,4 @@
|
||||
gpfs/gpfs.base
|
||||
gpfs/gpfs.gpl
|
||||
gpfs/gpfs.gplbin*
|
||||
gpfs/gpfs.msg.en_US
|
@ -31,43 +31,6 @@ if [ -n "$1" ]; then
|
||||
fi
|
||||
|
||||
OS=`uname`
|
||||
INSTALL_DIR='/install'
|
||||
UPDATES_DIR='post/otherpkgs/gpfs_updates'
|
||||
|
||||
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/gpfs_updates
|
||||
rm -f -R /tmp/gpfs_updates/*
|
||||
cd /tmp/gpfs_updates
|
||||
# wget -l inf -N -r --waitretry=10 --random-wait --retry-connrefused -t 10 -T 60 -nH --cut-dirs=3 ftp://$SITEMASTER/$UPDATES_DIR/*.rpm 2> /tmp/wget.log
|
||||
wget -l inf -N -r --waitretry=10 --random-wait --retry-connrefused -t 10 -T 60 -nH --cut-dirs=4 --reject "index.html*" --no-parent http://$SITEMASTER$INSTALL_DIR/$UPDATES_DIR/ 2> /tmp/wget.log
|
||||
if [ -n "`ls *.rpm 2> /dev/null`" ] ; then
|
||||
rpm -Uvh *.rpm
|
||||
fi
|
||||
cd /
|
||||
rm -f -R /tmp/gpfs_updates
|
||||
fi
|
||||
|
||||
if [ $NODESETSTATE == "genimage" ]; then
|
||||
if [ -d $INSTALL_DIR/$UPDATES_DIR ] ; 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
|
||||
zypper -R $installroot ar file:$INSTALL_DIR/$UPDATES_DIR gpfs_updates
|
||||
# zypper -R $installroot install gpfs.gplbin*
|
||||
zypper -R $installroot update gpfs*
|
||||
zypper -R $installroot rr gpfs_updates
|
||||
else
|
||||
# For Redhat, etc., assume yum is available on the system running genimage
|
||||
yum -y --installroot $installroot --nogpgcheck localupdate $INSTALL_DIR/$UPDATES_DIR/*.rpm
|
||||
fi
|
||||
fi
|
||||
fi
|
||||
fi
|
||||
|
||||
|
||||
## Create an empty nsddevices script for GPFS
|
||||
## This assumes that the node is NOT an NSD server
|
||||
|
Loading…
Reference in New Issue
Block a user