add one checkpoint for this situation when the directory already exists during booting up

git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@5031 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
This commit is contained in:
mxi1 2010-01-25 10:41:32 +00:00
parent 0d849e2956
commit 3f3b504df8

View File

@ -145,8 +145,14 @@ ProcessType () {
case "${3}" in
tmpfs,rw)
cp -a ${1} ${TMPFS}${2}
echo "cp -a ${1} ${TMPFS}${2}" >>$LOG
if [ ! -d ${TMPFS}${2} ]
then
cp -a ${1} ${TMPFS}${2}
echo "cp -a ${1} ${TMPFS}${2}" >>$LOG
else
cp -a ${1}* ${TMPFS}${2}
echo "cp -a ${1}/* ${TMPFS}${2}/" >>$LOG
fi
# the link will already be in place on the image, so nothing else to do!
#mount -n --bind ${TMPFS}${2} ${1}
;;