The $return_value should be defined at the beginning of
/xcatpost/mypostscript.post, this variable will be updated to the return
code of final post boot script.

Thanks
Best Regards
----------------------------------------------------------------------
 Wang Xiaopeng (王晓朋)
 IBM China System Technology Laboratory
 Tel: 86-10-82453455
 Email: [email protected]
 Address: 28,ZhongGuanCun Software Park,No.8 Dong Bei Wang West Road,
Haidian District Beijing P.R.China 100193



From:   "Russell Auld" <[email protected]>
To:     "'xCAT Users Mailing list'" <[email protected]>
Date:   2015/04/11 05:15
Subject:        [xcat-user] question on mypostscript.post



At the end of the script I see this block:


if [ "$return_value" -eq "0" ]; then


   updateflag.awk $MASTER 3002 "installstatus booted"


else


   updateflag.awk $MASTER 3002 "installstatus failed"


fi


I always wondered why the status would be “status=failed” when I ran an
‘lsdef’ on a node.


I think the status is due to the block above. I don’t see any other
definition or use of “$return_value” in the script.


On the imaged nodes, this block is in /xcatpost/mypostscript.post


and it’s generated by the “xcatinstallpost” postscript.


Can someone comment on this code block?


Present on both


Version 2.8.5 (git commit 51b69940b6fc7b54fc2a1f89330e69c8f830a3fc, built
Mon Sep  1 02:28:50 EDT 2014)


and


Version 2.8.4 (git commit ded873f998a889c91a169d3f870efdbebfb66243, built
Thu May 29 23:32:02 EDT 2014)
------------------------------------------------------------------------------

BPM Camp - Free Virtual Workshop May 6th at 10am PDT/1PM EDT
Develop your own process in accordance with the BPMN 2 standard
Learn Process modeling best practices with Bonita BPM through live
exercises
http://www.bonitasoft.com/be-part-of-it/events/bpm-camp-virtual- event?utm_
source=Sourceforge_BPM_Camp_5_6_15&utm_medium=email&utm_campaign=VA_SF_______________________________________________

xCAT-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/xcat-user


------------------------------------------------------------------------------
BPM Camp - Free Virtual Workshop May 6th at 10am PDT/1PM EDT
Develop your own process in accordance with the BPMN 2 standard
Learn Process modeling best practices with Bonita BPM through live exercises
http://www.bonitasoft.com/be-part-of-it/events/bpm-camp-virtual- event?utm_
source=Sourceforge_BPM_Camp_5_6_15&utm_medium=email&utm_campaign=VA_SF
_______________________________________________
xCAT-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/xcat-user

Reply via email to