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