How to reboot in %post?

whitivery co55-sy1t at dea.spamcon.org
Sat Jul 2 06:03:04 UTC 2011


Jos Vos <jos at xos.nl> wrote:

>On Fri, Jul 01, 2011 at 12:12:09AM -0700, whitivery wrote:
>
>> How can I cause a reboot in %post?  This is for CentOS 5.6 at the
>> moment; would also want it for 5.5, Fedora 14, and others.
>
>reboot is a kickstart option on itself, so outside %post (although
>I never tried it IIRC).  Be sure this does not cause an endless
>install loop (dependent on your install method).

Yes, I know about the reboot option.  But as I said, I
_conditionally_ want to reboot, not always.  Can't do that with
the kickstart "reboot" directive.

No problem with endless loops, Cobbler's default is to boot the
local disk.





More information about the Kickstart-list mailing list