-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Hi there,
After forcing the addition of the
mpss_compute-2.1.6720-15-rhels-6-x86_64 kit to our rhel64phi_updates
osimage I've had a look at the postscript that gets added and grafted
an initial attempt at support for statelite (and presumably stateless
too) by changing how certain actions are done when installroot is set.
I don't have a stateful node to test I can't be sure that's the right
way to discriminate between the two, but I'd guess there's no reason
for installroot to be set if it is stateful.
Unfortunately it appears there are no RPMs in the defined RPM dir, so
I'm guessing something else has gone wrong somewhere. :-(
I've attached the patch, hope it's useful!
All the best,
Chris
- --
Christopher Samuel Senior Systems Administrator
VLSCI - Victorian Life Sciences Computation Initiative
Email: [email protected] Phone: +61 (0)3 903 55545
http://www.vlsci.org.au/ http://twitter.com/vlsci
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.11 (GNU/Linux)
Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/
iEYEARECAAYFAlH3aEwACgkQO2KABBYQAh9bFwCeL+aUxtUfcExDY9RYtlnctvDX
jkEAniwh8rYUnChjR8DRTyeQotUibZ4l
=Xp0o
-----END PGP SIGNATURE-----
diff --git a/postscripts/KIT_mpss_compute-2.1.6720-15-rhels-6-x86_64_mpsscfg.sh b/postscripts/KIT_mpss_compute-2.1.6720-15-rhels-6-x86_64_mpsscfg.sh
index 402bfa5..6a131be 100755
--- a/postscripts/KIT_mpss_compute-2.1.6720-15-rhels-6-x86_64_mpsscfg.sh
+++ b/postscripts/KIT_mpss_compute-2.1.6720-15-rhels-6-x86_64_mpsscfg.sh
@@ -1,5 +1,12 @@
#! /bin/sh
+if [ -n "${installroot}" ]; then
+ if [ \! -d ${installroot} ]; then
+ echo "Install root defined to be ${installroot} but does not exist"
+ exit 1
+ fi
+fi
+
rpmdir="/opt/xcat/kits/mpss/mpss_compute-2.1.6720-15-rhels-6-x86_64"
# if existing, first install
@@ -8,23 +15,35 @@ if [ $? -ne 0 ]; then
exit 0
fi
-if [ -x "/etc/init.d/mpss" ]; then
- # stop the mpss service first
- /etc/init.d/mpss unload
+if [ -z "${installroot}" ]; then
+ if [ -x "/etc/init.d/mpss" ]; then
+ # stop the mpss service first
+ /etc/init.d/mpss unload
- # remove the pkgs
- yum -y remove --noplugins --disablerepo=* intel-mic*
+ # remove the pkgs
+ yum -y remove --noplugins --disablerepo=* intel-mic*
+ fi
fi
# install the new packages
-yum -y install --nogpgcheck --noplugins --disablerepo=* $rpmdir/intel-mic*.rpm
+if [ ${installroot} ]; then
+ yum -y install --installroot=${installroot} --nogpgcheck --noplugins --disablerepo=* $rpmdir/intel-mic*.rpm
+else
+ yum -y install --nogpgcheck --noplugins --disablerepo=* $rpmdir/intel-mic*.rpm
+fi
# enable the mpss service
-chkconfig mpss on
-/etc/init.d/mpss start >/dev/null 2>&1 </dev/null
+if [ ${installroot} ]; then
+ chroot ${installroot} chkconfig mpss on
+else
+ chkconfig mpss on
+ /etc/init.d/mpss start >/dev/null 2>&1 </dev/null
+fi
-# remove the rpm files to prevent the repeat installation by updatenode
-rm -rf $rpmdir/*
+if [ -z "${installroot}" ]; then
+ # remove the rpm files to prevent the repeat installation by updatenode
+ rm -rf $rpmdir/*
+fi
echo "finished the mpss installation."
exit 0
------------------------------------------------------------------------------
Get your SQL database under version control now!
Version control is standard for application code, but databases havent
caught up. So what steps can you take to put your SQL databases under
version control? Why should you start doing it? Read more to find out.
http://pubads.g.doubleclick.net/gampad/clk?id=49501711&iu=/4140/ostg.clktrk
_______________________________________________
xCAT-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/xcat-user