diff --git a/xCAT-server/share/xcat/netboot/add-on/statelite/rc.statelite b/xCAT-server/share/xcat/netboot/add-on/statelite/rc.statelite index 6d8a5db18..ae76900e2 100755 --- a/xCAT-server/share/xcat/netboot/add-on/statelite/rc.statelite +++ b/xCAT-server/share/xcat/netboot/add-on/statelite/rc.statelite @@ -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 diff --git a/xCAT-server/share/xcat/netboot/add-on/statelite/rc.statelite.ppc.redhat b/xCAT-server/share/xcat/netboot/add-on/statelite/rc.statelite.ppc.redhat index 0f5722083..46a5a149a 100755 --- a/xCAT-server/share/xcat/netboot/add-on/statelite/rc.statelite.ppc.redhat +++ b/xCAT-server/share/xcat/netboot/add-on/statelite/rc.statelite.ppc.redhat @@ -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