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:
parent
366eb340bd
commit
650ea98014
@ -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
|
||||
|
@ -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>
|
||||
|
@ -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
|
||||
|
@ -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>
|
||||
|
Loading…
Reference in New Issue
Block a user