[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

Re: "halt" option to kickstart in addition to "reboot"

On Tue, 2003-04-29 at 17:33, Gene Hightower wrote:
> I've got a bunch of identical systems that I'll be installing.  I've
> put together an install CD that works without any user interaction.
> User interaction is bad for me because there is no keyboard, mouse or
> display attached to the machines.
> I'd like to plop the CD in the drive, turn the box on, and turn it off
> when the install is done.
> Unfortunately, kick-start seems to offer only two options at the end
> of the install.  The default is to wait for a keystroke before
> rebooting.  Not good, as I can't tell when the install is done.
> The other choice is to add the "reboot" option to the kick-start
> config file.  This option is not so good because it ends up ejecting
> the CD at the end of the install, then rebooting, which causes the CD
> to get sucked back in and used as the boot device--which starts the
> install all over again.  You have about 10 seconds to grab the disk to
> avoid this endless cycle.
> What I need is a "halt" option.  It should eject the CD and halt the
> box without rebooting.  It should just sit there, so it can be turned
> off safely.
> I started to take a look at the python code but discovered that I
> don't know enough python to make much sense of things, so I thought
> I'd ask all you smart people on this list.

I haven't tried this, but it seems like you should be able to call 
'/usr/bin/halt' in the %post section of your kickstart file.  If that
works, that would probably be the least invasive way to do it.

Also, I would suggest that you file an RFE against anaconda in Bugzilla
so the anaconda team can add this feature into kickstart.  That would
avoid people having to come up with workarounds for halting after


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]