From 650ea980147d219a02d9b4394a42006da0240a68 Mon Sep 17 00:00:00 2001 From: lissav Date: Tue, 14 Feb 2012 18:00:40 +0000 Subject: [PATCH] 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 --- xCAT-server/share/xcat/install/scripts/post.sles | 1 + xCAT-server/share/xcat/install/scripts/post.sles10.s390x | 3 ++- xCAT-server/share/xcat/install/scripts/post.sles11 | 3 ++- xCAT-server/share/xcat/install/scripts/post.sles11.s390x | 3 ++- 4 files changed, 7 insertions(+), 3 deletions(-) diff --git a/xCAT-server/share/xcat/install/scripts/post.sles b/xCAT-server/share/xcat/install/scripts/post.sles index db3e3c4a9..7f4d301c4 100644 --- a/xCAT-server/share/xcat/install/scripts/post.sles +++ b/xCAT-server/share/xcat/install/scripts/post.sles @@ -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 diff --git a/xCAT-server/share/xcat/install/scripts/post.sles10.s390x b/xCAT-server/share/xcat/install/scripts/post.sles10.s390x index dbb615cfa..b922bf6e9 100644 --- a/xCAT-server/share/xcat/install/scripts/post.sles10.s390x +++ b/xCAT-server/share/xcat/install/scripts/post.sles10.s390x @@ -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 / ]]> - \ No newline at end of file + diff --git a/xCAT-server/share/xcat/install/scripts/post.sles11 b/xCAT-server/share/xcat/install/scripts/post.sles11 index 58c6b16e0..a58147276 100644 --- a/xCAT-server/share/xcat/install/scripts/post.sles11 +++ b/xCAT-server/share/xcat/install/scripts/post.sles11 @@ -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 diff --git a/xCAT-server/share/xcat/install/scripts/post.sles11.s390x b/xCAT-server/share/xcat/install/scripts/post.sles11.s390x index 5cd8ac1cb..8e362c8b6 100644 --- a/xCAT-server/share/xcat/install/scripts/post.sles11.s390x +++ b/xCAT-server/share/xcat/install/scripts/post.sles11.s390x @@ -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 / ]]> - \ No newline at end of file +