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

Re: Pausing, terminating, and resuming installs



On Wed, 2 Apr 2003, Sean P. Kane wrote:

> This is an interesting discussion. I tried a trick recently to PAUSE the
> install in the %post section if certain unusual errors occurred (from
> here I could decide to continue or cancel). I did this by simply using
> the "read" command to wait for <enter> until continuing. Of course, the
> problem here ended up being that you are only seeing the output from
> your post script and don't actually have anyway to give it input. I
> tried a few hacks like using "open" to launch it interactively on
> another vt, but that didn't seem to work well either. Has anyone had any
> success with such an approach? It would be nice to come up with some
> solid error handling for kickstart.

I've been hacking away at my own installer. If I want it to pause, I
find this works well:
/bin/bash </dev/console >/dev/console 2>/dev/console

This gives me complete freedom as to what to do, including 
"/sbin/reboot -f -n"


-- 
Please, reply only to the list.






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