From c9ad6e7855e5132fab57d442b1a647374754a972 Mon Sep 17 00:00:00 2001 From: vallard Date: Wed, 27 Jan 2010 00:10:34 +0000 Subject: [PATCH] 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 --- .../share/xcat/netboot/add-on/statelite/rc.statelite | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) 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: