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:
parent
b38f0378a5
commit
8637c96318
@ -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
|
||||
|
@ -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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user