From 40e7d8b3a239541cf138e0a0d34ed76a4bbd47f5 Mon Sep 17 00:00:00 2001 From: mellor Date: Tue, 22 Feb 2011 19:52:59 +0000 Subject: [PATCH] replace hardcoded image name in pe_install sample postinstall script git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@8908 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd --- xCAT-IBMhpc/share/xcat/IBMhpc/pe/pe_install | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/xCAT-IBMhpc/share/xcat/IBMhpc/pe/pe_install b/xCAT-IBMhpc/share/xcat/IBMhpc/pe/pe_install index c6704d3a0..350508442 100755 --- a/xCAT-IBMhpc/share/xcat/IBMhpc/pe/pe_install +++ b/xCAT-IBMhpc/share/xcat/IBMhpc/pe/pe_install @@ -97,15 +97,16 @@ if [ $OS != "AIX" ]; then chroot $installroot /opt/ibmhpc/install/sbin/accept_ppe_license.sh # Install PE product rpms #INUCLIENTS=1 INUBOSTYPE=1 yum --installroot $installroot --nogpgcheck install $PE_DIR/ibm_lapi*.rpm $PE_DIR/ibm_pe*.rpm $PE_DIR/ppe_*.rpm - chroot /install/netboot/rhels6/ppc64/compute_hfi_0128_cfgchg/rootimg mkdir -p /tmp/pe - chroot /install/netboot/rhels6/ppc64/compute_hfi_0128_cfgchg/rootimg rm -f -R /tmp/pe/* + chroot $installroot mkdir -p /tmp/pe + chroot $installroot rm -f -R /tmp/pe/* + download_dir=`echo $PE_DIR | cut -d '/' -f3-` echo $download_dir ### we had to set SITEMASTER to MN IP explicitly in our test cluster #SITEMASTER=10.0.0.1 - chroot /install/netboot/rhels6/ppc64/compute_hfi_0128_cfgchg/rootimg wget -l inf -N -r --waitretry=10 --random-wait --retry-connrefused -t 10 -T 60 -nH --cut-dirs=5 ftp://$SITEMASTER/$download_dir/*.rpm --directory-prefix=/tmp/pe - chroot /install/netboot/rhels6/ppc64/compute_hfi_0128_cfgchg/rootimg /bin/rpm -ivh /tmp/pe/s*.rpm /tmp/pe/p*.rpm /tmp/pe/ibm_*.rpm --nodeps - chroot /install/netboot/rhels6/ppc64/compute_hfi_0128_cfgchg/rootimg /bin/rm -r /tmp/pe + chroot $installroot wget -l inf -N -r --waitretry=10 --random-wait --retry-connrefused -t 10 -T 60 -nH --cut-dirs=5 ftp://$SITEMASTER/$download_dir/*.rpm --directory-prefix=/tmp/pe + chroot $installroot /bin/rpm -ivh /tmp/pe/s*.rpm /tmp/pe/p*.rpm /tmp/pe/ibm_*.rpm --nodeps + chroot $installroot /bin/rm -r /tmp/pe ############## fi fi