fixed a bug to get rid of trailing / so link would work

git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@5049 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
This commit is contained in:
vallard 2010-01-27 00:10:34 +00:00
parent 4a07e2eaeb
commit c9ad6e7855

View File

@ -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: