From 59523649c5d53507bbdcce6464110b366133d520 Mon Sep 17 00:00:00 2001 From: mellor Date: Wed, 7 Apr 2010 14:01:24 +0000 Subject: [PATCH] HPC Integration - fix auto mount of /dev/cpuset git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@5700 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd --- .../share/xcat/IBMhpc/IBMhpc.sles.postinstall | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/xCAT-IBMhpc/share/xcat/IBMhpc/IBMhpc.sles.postinstall b/xCAT-IBMhpc/share/xcat/IBMhpc/IBMhpc.sles.postinstall index 11c4dd04d..052a14703 100755 --- a/xCAT-IBMhpc/share/xcat/IBMhpc/IBMhpc.sles.postinstall +++ b/xCAT-IBMhpc/share/xcat/IBMhpc/IBMhpc.sles.postinstall @@ -34,7 +34,6 @@ devpts /dev/pts devpts rw,gid=5,mode=620 0 0 #${profile}_${arch} / tmpfs rw 0 1 none /tmp tmpfs defaults,size=3g 0 2 none /var/tmp tmpfs defaults,size=1g 0 2 -none /dev/cpuset cpuset defaults,noauto 0 0 END #-- Uncomment the "cons" entry in /etc/inittab @@ -58,6 +57,17 @@ chroot $installroot chkconfig atd on # Turn on xinetd chroot $installroot chkconfig xinetd on +# Automatically mount /dev/cpuset at node boot +if ! grep 'cpuset' $installroot/etc/init.d/boot.local ; then +cat <>$installroot/etc/init.d/boot.local +if test -e /dev/cpuset || mkdir -p /dev/cpuset ; then + mount -t cpuset none /dev/cpuset +fi +END +fi + + + # Modify some ulimits if [ ! -f $installroot/etc/sysconfig/ulimit ]; then cp -p /etc/sysconfig/ulimit $installroot/etc/sysconfig