From 8637c9631884d816409753212c9351c20df15104 Mon Sep 17 00:00:00 2001 From: mxi1 Date: Sat, 12 Jun 2010 10:03:48 +0000 Subject: [PATCH] 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 --- xCAT-server/share/xcat/netboot/add-on/statelite/rc.statelite | 3 +++ .../xcat/netboot/add-on/statelite/rc.statelite.ppc.redhat | 4 ++++ 2 files changed, 7 insertions(+) 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