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 7ffc270cc..856b0e2bc 100755 --- a/xCAT-server/share/xcat/netboot/add-on/statelite/rc.statelite +++ b/xCAT-server/share/xcat/netboot/add-on/statelite/rc.statelite @@ -304,6 +304,12 @@ ProcessType () { # make tree in persistent and tmpfs # need to check whether the option of its parent direcotry is persistent or not + TMPDIR=`dirname ${2}` + if [ ! -e ${PERSISTENT}${TMPDIR} ]; then + mkdir -p ${PERSISTENT}${TMPDIR} + echo "mkdir -p ${PERSISTENT}${TMPDIR}" >>$LOG + fi + if [ "$isChild" = "1" ]; then num=${#PLIST[@]} for ((i=0;i<$num; i++)); do 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 6b3fb0ede..842a2c983 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 @@ -303,6 +303,13 @@ ProcessType () { # make tree in persistent and tmpfs # need to check whether the option of its parent direcotry is persistent or not + + TMPDIR=`dirname ${2}` + if [ ! -e ${PERSISTENT}${TMPDIR} ]; then + mkdir -p ${PERSISTENT}${TMPDIR} + echo "mkdir -p ${PERSISTENT}${TMPDIR}" >>$LOG + fi + if [ "$isChild" = "1" ]; then num=${#PLIST[@]} for ((i=0;i<$num; i++)); do