-If aufs style setup detected, setup pre-emptive lazy umounts for shutdown and reboot

git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@1338 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
This commit is contained in:
jbjohnso 2008-05-09 17:20:04 +00:00
parent 8cb889fae4
commit bc96f570ba

View File

@ -13,6 +13,15 @@ if [ ! `uname` == Linux ]; then
fi
SIP=`grep dhcp-server-identifier /var/lib/dhclient/dhclient-eth0.leases|tail -n 1|awk '{print $3}'|sed -e 's/;//'`
if grep 'rw /rw tmpfs ' /proc/mounts >& /dev/null; then
touch /var/lock/subsys/xcatmounts
echo '#!/bin/bash' > /etc/rc6.d/K10xcatmounts
echo umount -l /ro >> /etc/rc6.d/K10xcatmounts
echo umount -l /rw >> /etc/rc6.d/K10xcatmounts
chmod 755 /etc/rc6.d/K10xcatmounts
ln -sf /etc/rc6.d/K10xcatmounts /etc/rc0.d/K10xcatmounts
fi
mkdir -p /etc/stunnel
cat > /etc/stunnel/stunnel.conf << EOF