Hey guys:

I was talking to Brian Finley yesterday about the idea of having
first(re)boot scripts (Brian pointed out that it is actually first
_re_boot, as opposed to firstboot, so we will go with that name now).

We hashed out some ideas and I summarize them below for discussions.
Brian, if I got them wrong, please let me know.

So basically we wanted to have a set of scripts that are executed on
nodes when they are first rebooted after being imaged.  This is along
the lines of pre-install and post-install scripts.

These scripts will reside in /etc/systemimager/firstreboot directory in
the image (and subsequently on the imaged node) and there will be a
README explaining the syntax as well as scripts with numerically ordered
names (so that they are executed in order).  There will be a state file
(/var/state/systemimager-firstreboot) which will specify the state of
execution of these scripts, it will contain the last successfully
executed script in the firstreboot/ directory and thus gurantees that
each script is successfully executed and also that they won't be
executed upon each reboot.

We didn't explicitly talked about this yesterday but I presume the user
would just drop these scripts in
/var/lib/systemimager/scripts/firstreboot and then the scripts will just
be copied to the image's /etc/systemimager/firstreboot directory.

If you perform a get_clients operation, the state file will be removed
from the golden image but the scripts will be left intact such that they
will be executed after a node is successfully imaged.

Potential uses are to report si_monitor status "rebooted" such that the
user can know when an imaged node is up and running, and potentially
used by OSCAR for doing some pre-OPM post_installation cleanup per
client for packages and such.

Hope that this is clear for everyone.

Cheers,

Bernard


-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_idv37&alloc_id865&op=click
_______________________________________________
Sisuite-devel mailing list
Sisuite-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/sisuite-devel

Reply via email to