Post reboot commands (howto?)

Jesse Keating jkeating at j2solutions.net
Fri Mar 4 19:39:13 UTC 2005


On Fri, 2005-03-04 at 11:31 -0800, niko wrote:
> I am using kickstart (EL3) to setup machines over the network. I would
> like to
> be able to run a script only once when the machine reboots after a
> successful
> installation (script must run with the right kernel and so on...)
> 
> The %post sequence is executed before the reboot so that is not doing
> it.
> I was thinking of adding a 'runonce' file in /etc/init.d to do the
> work and
> remove itself. Has anyone a better solution?

I do pretty close to this.  I'll backup the original /etc/rc.local file
in the kickstart %post, and drop a new rc.local file in that points to
the script I want ran after boot.  The end of my script will replace the
backed up rc.local file.

-- 
Jesse Keating RHCE      (geek.j2solutions.net)
Fedora Legacy Team      (www.fedoralegacy.org)
GPG Public Key          (geek.j2solutions.net/jkeating.j2solutions.pub)
 
Was I helpful?  Let others know:
 http://svcs.affero.net/rm.php?r=jkeating




More information about the Kickstart-list mailing list