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
This commit is contained in:
mellor 2010-04-07 14:01:24 +00:00
parent 3a50d6cf7c
commit 59523649c5

View File

@ -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 <<END >>$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