From 87db317493f16b9baeb8ee8eda838a080cffc923 Mon Sep 17 00:00:00 2001 From: xq2005 Date: Thu, 17 Oct 2013 02:21:02 -0700 Subject: [PATCH] add env parameters in runxcatpost --- xCAT/postscripts/runxcatpost | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/xCAT/postscripts/runxcatpost b/xCAT/postscripts/runxcatpost index 973425802..83284ca55 100644 --- a/xCAT/postscripts/runxcatpost +++ b/xCAT/postscripts/runxcatpost @@ -18,6 +18,15 @@ echo "cd /" >> /tmp/xcatsysclonepost chmod +x /tmp/xcatsysclonepost /tmp/xcatsysclonepost +if [ -x /usr/bin/openssl ]; then + USEOPENSSLFORXCAT=1 #Though this is the only method going forward, flag to allow backward compatibility with 2.2 generated netboot images + export USEOPENSSLFORXCAT +fi + +. /opt/xcat/xcatinfo +XCATSERVER="$XCATSERVER:3001" +export XCATSERVER + cd /xcatpost/ #save the postboot scripts to /xcatpost/mypostscript.post TMP=`sed "/postscripts-start-here/,/postscripts-end-here/ d" /xcatpost/mypostscript` @@ -50,6 +59,7 @@ fi TMP=`sed "/postbootscripts-start-here/,/postbootscripts-end-here/ d" /xcatpost/mypostscript` echo "$TMP" > /xcatpost/mypostscript + chmod +x /xcatpost/mypostscript /xcatpost/mypostscript