Re: How to reboot in %post?

whitivery <[email protected]>
Newsgroups gmane.linux.redhat.kickstart.general
Message-ID <[email protected]>
Jos Vos <[email protected]> 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.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.