User-interactivity in %pre

Luciano Miguel Ferreira Rocha strange at nsk.no-ip.org
Wed Nov 10 20:30:26 UTC 2004


On Wed, Nov 10, 2004 at 08:47:28AM -0700, Ed Brown wrote:
> Looks like you have the chvt part.  You also need to redirect standard
> input/output.  This is the shell command to do it:
> 
> exec < /dev/tty3 > /dev/tty3 
> 
> I would guess you could wrap that in a python system call, like you did
> for chvt.

No, that would only change the spawned shell. He needs to open that file
(RDWR) and either change python's stdout, stdin to that one or use them
directly.

Or change the %pre to a script that just does the chvt, exec and
executes the python script somewhere. (wget? curl?)

Regards,
Luciano Rocha




More information about the Kickstart-list mailing list