diff --git a/xCAT-server/share/xcat/install/scripts/post.xcat b/xCAT-server/share/xcat/install/scripts/post.xcat index 0ad6ce8e6..996f44c57 100755 --- a/xCAT-server/share/xcat/install/scripts/post.xcat +++ b/xCAT-server/share/xcat/install/scripts/post.xcat @@ -19,6 +19,9 @@ if [ -z "$TFTPDIR" ]; then TFTPDIR="/tftpboot" fi +if [[ $TFTPDIR != /* ]]; then + TFTPDIR="/"$TFTPDIR +fi cd /tmp RAND=$(perl -e 'print int(rand(50)). "\n"')