From 6ea2ab172a7b039d785561b7470592daee3222ba Mon Sep 17 00:00:00 2001 From: ligc Date: Tue, 22 Dec 2009 04:34:29 +0000 Subject: [PATCH] fix for bug 2918528: remove postbootscripts from mypostscript when postscript name is specified with updatenode command git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@4838 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd --- xCAT/postscripts/xcatdsklspost | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/xCAT/postscripts/xcatdsklspost b/xCAT/postscripts/xcatdsklspost index a70f9542a..4787decf8 100755 --- a/xCAT/postscripts/xcatdsklspost +++ b/xCAT/postscripts/xcatdsklspost @@ -207,8 +207,12 @@ if [ $argnum -gt 0 ]; then echo "$TMP" > /tmp/mypostscript; fi +# postscript name is specified with the updatenode if [ $argnum -gt 2 ]; then POSTS=$3 + #remove all the postbootscripts + TMP=`sed "/postbootscripts-start-here/,/postbootscripts-end-here/ d" /tmp/mypostscript` + echo "$TMP" > /tmp/mypostscript #remove all the postscripts TMP=`sed "/postscripts-start-here/,/postscripts-end-here/ d" /tmp/mypostscript` echo "$TMP" > /tmp/mypostscript