diff --git a/xCAT-IBMhpc/share/xcat/IBMhpc/gpfs/gpfs_updates b/xCAT-IBMhpc/share/xcat/IBMhpc/gpfs/gpfs_updates index 96d25fbad..91caf3027 100755 --- a/xCAT-IBMhpc/share/xcat/IBMhpc/gpfs/gpfs_updates +++ b/xCAT-IBMhpc/share/xcat/IBMhpc/gpfs/gpfs_updates @@ -42,11 +42,14 @@ if [ $OS != "AIX" ]; then 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 - rpm -Uvh *.rpm + if [ -n "`ls *.rpm 2> /dev/null`" ] ; then + rpm -Uvh *.rpm + fi rm -f -R /tmp/gpfs_updates fi if [ $NODESETSTATE == "genimage" ]; then + if [ -d $INSTALL_DIR/$UPDATES_DIR ] ; then # Being called from .postinstall script # Assume we are on the same machine if [[ $OS = sles* ]] || [[ $OS = suse* ]] || [[ -f /etc/SuSE-release ]]; then @@ -59,7 +62,7 @@ if [ $OS != "AIX" ]; then # For Redhat, etc., assume yum is available on the system running genimage yum --installroot $installroot --nogpgcheck localupdate $INSTALL_DIR/$UPDATES_DIR/*.rpm fi - + fi fi fi diff --git a/xCAT-IBMhpc/share/xcat/IBMhpc/pe/pe_install b/xCAT-IBMhpc/share/xcat/IBMhpc/pe/pe_install index cebc4f19a..b8e20fe2e 100755 --- a/xCAT-IBMhpc/share/xcat/IBMhpc/pe/pe_install +++ b/xCAT-IBMhpc/share/xcat/IBMhpc/pe/pe_install @@ -42,7 +42,9 @@ if [ $OS != "AIX" ]; then 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 ftp://$SITEMASTER/$download_dir/*.rpm 2> /tmp/wget.log - rpm -Uvh IBM_pe_license*.rpm + if [ -f /opt/ibmhpc/install/sbin/accept_ppe_license.sh ] ; then + rpm -Uvh IBM_pe_license*.rpm + fi IBM_PE_LICENSE_PROMPT=N /opt/ibmhpc/install/sbin/accept_ppe_license.sh rpm -Uvh --force ibm_lapi*.rpm ibm_pe*.rpm ppe_*.rpm cd /