add env parameters in runxcatpost
This commit is contained in:
parent
52344f9997
commit
87db317493
@ -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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user