anaconda screens

Luis Correia luis.f.correia at gmail.com
Thu Aug 7 09:55:40 UTC 2008


Hi Pablo,

On Thu, Aug 7, 2008 at 10:52, Pablo Iranzo Gómez
<Pablo.Iranzo at redhat.com> wrote:
>        Luis
>        If you use "chvt 3", the vt shown on your display will be vt3.
>
>        ¿Why the user will not be seeing it?

Because I don't get stuff right the first time i read it ..

Let me run some tests and I'll get back to you if need be.

Gracias!
Luis

>
>        Regards
>        Pablo
>
> El jue, 07-08-2008 a las 10:46 +0100, Luis Correia escribió:
>> Hi!
>>
>> On Thu, Aug 7, 2008 at 10:41, Pablo Iranzo Gómez
>> <Pablo.Iranzo at redhat.com> wrote:
>> >        Of course, on vt3 you can 'simulate' anaconda screens ;).
>> >
>> >        If you really need them on vt1 will need to modify anaconda, but IMHO
>> > that would make it harder to debug and mantain in the future.
>> >
>>
>> Well, the user wouldn't see anything if it isn't on vt1...
>>
>> I can try to show some stuff on vt3, with the 'emulated anaconda
>> screens' but that is really just for debug, I couldn't go with that
>> for a production env...
>>
>> Luis
>>
>>
>> >        Regards
>> >        Pablo
>> >
>> > El jue, 07-08-2008 a las 11:39 +0200, Pablo Iranzo Gómez escribió:
>> >>       No Luis, in your %pre script you can make a switch to vt3 -> chvt 3
>> >> do whatever echo and reads you want, and return back to anaconda with
>> >> chvt 1
>> >>
>> >>
>> >>       Regards
>> >>       Pablo
>> >>
>> >>
>> >> El jue, 07-08-2008 a las 10:37 +0100, Luis Correia escribió:
>> >> > Hi Joel,
>> >> >
>> >> > On Thu, Aug 7, 2008 at 10:23, Joel Andres Granados <jgranado at redhat.com> wrote:
>> >> > > Luis Correia wrote:
>> >> > >>
>> >> > >> Hi,
>> >> > >>
>> >> > >> I'm about to do some funky %pre stuff in python, to decide whetner or
>> >> > >> not to install the machine and need some user interaction.
>> >> > >> We're only doing it in text mode, no need for fancy graphics.
>> >> > >>
>> >> > >> How do I from the %pre script write stuff to the screen, get input,
>> >> > >> maybe a button or two ?
>> >> > >>
>> >> > >> I've rummaged through the anaconda code, but it all seems a bit strange to
>> >> > >> me.
>> >> > >>
>> >> > >> Thanks for all the help you could provide,
>> >> > >> Luis Correia
>> >> > >>
>> >> > >> _______________________________________________
>> >> > >> Kickstart-list mailing list
>> >> > >> Kickstart-list at redhat.com
>> >> > >> https://www.redhat.com/mailman/listinfo/kickstart-list
>> >> > >
>> >> > > Took a quick look at the code and it seems that it executes whatever is in
>> >> > > pre with a redirect to tty3, including the input.  This suggests to me that
>> >> > > you can basically do a bash read (or however you want to prompt the user)
>> >> > > and it will prompt you on the vt3.  It wont work if you are installing
>> >> > > through serial console though.  Didn't actually test this.
>> >> > >
>> >> > > Hope it helps.
>> >> >
>> >> > So, that means that, in order to interact with the user in the main
>> >> > tty, I must modify Anaconda, right?
>> >> > If yes, then I could probably use the 'updates' method...
>> >> >
>> >> > > --
>> >> > > Joel Andres Granados
>> >> > > Red Hat / Brno, Czech Republic
>> >> >
>> >> > Luis Correia
>> >> >
>>
>> _______________________________________________
>> Kickstart-list mailing list
>> Kickstart-list at redhat.com
>> https://www.redhat.com/mailman/listinfo/kickstart-list
> --
>
> Pablo Iranzo Gómez (Pablo.Iranzo at redhat.com)
> RHCE/RHCSP/RHCSS Global Profesional Services Consultant Spain
> Phone: +34 645 01 01 49 (CET/CEST)
> GnuPG KeyID: 0xFAD3CF0D
>
> --
> Inscrita en el Reg. Mercantil de Madrid – C.I.F. B-82 65 79 41
> Directores: Michael Cunningham, Charlie Peters y David Owens
> Dirección Registrada: Red Hat S.L., C/ Velazquez 63, Madrid 28001, España
> Dirección contacto: C/Jose Bardasano Baos, 9, Edif. Gorbea 3, Planta 3ºD, 28016 Madrid, Spain
>
>
>
> _______________________________________________
> Kickstart-list mailing list
> Kickstart-list at redhat.com
> https://www.redhat.com/mailman/listinfo/kickstart-list
>




More information about the Kickstart-list mailing list