update the code to handle the entries with "persistent" option,

git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@6449 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
This commit is contained in:
mxi1 2010-06-12 10:03:48 +00:00
parent b38f0378a5
commit 8637c96318
2 changed files with 7 additions and 0 deletions

View File

@ -282,6 +282,9 @@ ProcessType () {
echo "rm -Rf ${TARGET}" >>$LOG
rm -Rf ${TARGET} 2>&1 >>$LOG
fi
# mount it to ${TARGET}
echo "mount --bind ${PERSISTENT}${2} ${TARGET}" >>$LOG
mount --bind ${PERSISTENT}${2} ${TARGET}
if [ "$isChild" = "0" ]; then
# finally make the tmpfs link point to the persistent file

View File

@ -283,6 +283,10 @@ ProcessType () {
rm -Rf ${TARGET} 2>&1 >>$LOG
fi
# mount it to ${TARGET}
echo "mount --bind ${PERSISTENT}${2} ${TARGET}" >>$LOG
mount --bind ${PERSISTENT}${2} ${TARGET}
if [ "$isChild" = "0" ]; then
# finally make the tmpfs link point to the persistent file