fix build of mypostscript to include cd /xcatpost defect 3487592

git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@11572 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
This commit is contained in:
lissav 2012-02-14 18:00:40 +00:00
parent 366eb340bd
commit 650ea98014
4 changed files with 7 additions and 3 deletions

View File

@ -158,6 +158,7 @@ run_ps () {
# subroutine end
" > /tmp/mypostscript
echo "cd /xcatpost" >> /tmp/mypostscript
echo "$TMP" >> /tmp/mypostscript
TMP=`sed "/postbootscripts-start-here/,/postbootscripts-end-here/ s/\(.*\)/run_ps \1/;s/run_ps\s*#/#/;s/run_ps\s*$//" /tmp/mypostscript`
echo "$TMP" > /tmp/mypostscript

View File

@ -118,6 +118,7 @@ run_ps () {
# subroutine end
" > /tmp/mypostscript
echo "cd /xcatpost" >> /tmp/mypostscript
echo "$TMP" >> /tmp/mypostscript
TMP=`sed "/postbootscripts-start-here/,/postbootscripts-end-here/ s/\(.*\)/run_ps \1/;s/run_ps\s*#/#/;s/run_ps\s*$//" /tmp/mypostscript`
echo "$TMP" > /tmp/mypostscript
@ -165,4 +166,4 @@ cd /
]]>
</source>
</script>
</post-scripts>
</post-scripts>

View File

@ -141,6 +141,7 @@ run_ps () {
# subroutine end
" > /tmp/mypostscript
echo "cd /xcatpost" >> /tmp/mypostscript
echo "$TMP" >> /tmp/mypostscript
TMP=`sed "/postbootscripts-start-here/,/postbootscripts-end-here/ s/\(.*\)/run_ps \1/;s/run_ps\s*#/#/;s/run_ps\s*$//" /tmp/mypostscript`
echo "$TMP" > /tmp/mypostscript
@ -172,7 +173,7 @@ chkconfig --add xcatpostinit1
#only run the prebooot scripts here
TMP=`sed "/postbootscripts-start-here/,/postbootscripts-end-here/ d" /tmp/mypostscript`
echo "$TMP" > /tmp/mypostscript
cd /xcatpost
/tmp/mypostscript
updateflag.awk $MASTER 3002

View File

@ -114,6 +114,7 @@ run_ps () {
# subroutine end
" > /tmp/mypostscript
echo "cd /xcatpost" >> /tmp/mypostscript
echo "$TMP" >> /tmp/mypostscript
TMP=`sed "/postbootscripts-start-here/,/postbootscripts-end-here/ s/\(.*\)/run_ps \1/;s/run_ps\s*#/#/;s/run_ps\s*$//" /tmp/mypostscript`
echo "$TMP" > /tmp/mypostscript
@ -160,4 +161,4 @@ cd /
]]>
</source>
</script>
</post-scripts>
</post-scripts>