Lissa, So the only real difference between postscripts and postbootscripts is that postbootscripts don't get run during the kickstart phase, and only after the first boot?
I was hoping there might be something that was more like a postinstallscript - something that is only run after the machine has been installed, and not via updatenode. Ideally it would still be a postscript so that it can be run manually if required. We could write a postscript that installs an initscript and deletes itself after it is run. > There is also one other option, when you run the script with > updatenode, we export an environment variable in the mypostscript > file which your script can check. This will tell it, it is being run > by updatenode vs during install. > UPDATENODE=1 > export UPDATENODE > > So you will see checks in our postscripts like the following to run > different logic whether it is being run by updatenode or during install. > You could put this check at the start of the script and exit when run by > updatenode. > > if [ -n "$UPDATENODE" ] && [ $UPDATENODE -eq 1 ]; then Ok, thanks this might be useful as a work around the problem. The only issue I do see is that I won't be able to run the script manually either... that is if I run updatenode <node> -P <script> I expect the UPDATENODE variable will be set and thus my script will abort before changes are made, which really means I'd be better off removing the script from the postscripts table and just running it manually when the node comes online - which is what I am looking to avoid. Is there a list of other variables that are set that we can see to get an idea of other tweaks we can do to our scripts? Cheers, Craig. ------------------------------------------------------------------------------ Master HTML5, CSS3, ASP.NET, MVC, AJAX, Knockout.js, Web API and much more. Get web development skills now with LearnDevNow - 350+ hours of step-by-step video tutorials by Microsoft MVPs and experts. SALE $99.99 this month only -- learn more at: http://p.sf.net/sfu/learnmore_122812 _______________________________________________ xCAT-user mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/xcat-user
