List Info

Thread: determine VGA vs. ttyS* console in %pre ?




determine VGA vs. ttyS* console in %pre ?
user name
2006-12-07 01:22:00
Steve Rikli wrote:
> In article <y9hvekomyu9.fsflime.ircam.fr>,
> Arnaud Gomes-do-Vale  <kickstart-listredhat.com> wrote:
> 
>>srgenyosha.net (Steve Rikli) writes:
>>
>>
>>>Is there a way during %pre to determine what the
console is?
>>
>>The easiest (only?) way would be parsing
/proc/cmdline.
> 
> 
> Yes, excellent!   I ought to be able to make use of
that -- thanks.

I'm mildly confused... What you will see in the commandline
is those 
console arguments. It's how the kernel knows what to use.



-- 

Cheers
John

-- spambait
1aaaaaaacoco.merseine.nu  Z1aaaaaaacoco.merseine.nu
Tourist pics http://portgeographe.environmentaldisasters.cds.mers
eine.nu/

Please do not reply off-list

_______________________________________________
Kickstart-list mailing list
Kickstart-listredhat.com
https://www.redhat.com/mailman/listinfo/kickstart-list

determine VGA vs. ttyS* console in %pre ?
user name
2006-12-07 16:07:16
What about the tty command?

$ tty
/dev/pts/0

I have no idea what it would output on each case, but it is
worth a
try. You may have to put the tty binary on the cd if it's
not already
on the installer. Finally, you could analyse it and mimic
it's
behavior (if it's just looking up something in /proc).

andre

On 12/6/06, John Summerfield <debianherakles.homelinux.org> wrote:
> Steve Rikli wrote:
> > In article <y9hvekomyu9.fsflime.ircam.fr>,
> > Arnaud Gomes-do-Vale  <kickstart-listredhat.com> wrote:
> >
> >>srgenyosha.net (Steve Rikli) writes:
> >>
> >>
> >>>Is there a way during %pre to determine
what the console is?
> >>
> >>The easiest (only?) way would be parsing
/proc/cmdline.
> >
> >
> > Yes, excellent!   I ought to be able to make use
of that -- thanks.
>
> I'm mildly confused... What you will see in the
commandline is those
> console arguments. It's how the kernel knows what to
use.
>
>
>
> --
>
> Cheers
> John
>
> -- spambait
> 1aaaaaaacoco.merseine.nu  Z1aaaaaaacoco.merseine.nu
> Tourist pics http://portgeographe.environmentaldisasters.cds.mers
eine.nu/
>
> Please do not reply off-list
>
> _______________________________________________
> Kickstart-list mailing list
> Kickstart-listredhat.com
> https://www.redhat.com/mailman/listinfo/kickstart-list
>


-- 
Andre Ruiz  <andre.ruizgmail.com>
Curitiba, PR, Brasil

_______________________________________________
Kickstart-list mailing list
Kickstart-listredhat.com
https://www.redhat.com/mailman/listinfo/kickstart-list

[1-2]

about | contact  Other archives ( Real Estate discussion Medical topics )