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 9c99d4cce..28f167923 100755 --- a/xCAT-server/share/xcat/netboot/add-on/statelite/rc.statelite +++ b/xCAT-server/share/xcat/netboot/add-on/statelite/rc.statelite @@ -189,8 +189,12 @@ ProcessType () { # you have to get rid of the /sysroot in the beginning # so that when the chroot happens the link is valid. LINK=`echo ${PERSISTENT}${2} | sed -e 's/^\/sysroot//'` - echo "ln -sf ${LINK} ${TMPFS}${2}" >>$LOG - ln -sf ${LINK} ${TMPFS}${2} >>$LOG 2>&1 + + # whack of trailing / for persistent directories: + TARGET=`echo ${TMPFS}${2} | sed -e 's/\/$//'` + + echo "ln -sf ${LINK} ${TARGET}" >>$LOG + ln -sf ${LINK} ${TARGET} >>$LOG 2>&1 ;; ro) # need to make sure directory exists: