What does check_for_consoles do?

fykcee1 at gmail.com fykcee1 at gmail.com
Thu Apr 21 00:38:23 PDT 2011


2011/4/21 Ray Strode <halfline at gmail.com>:
> Hi,
>
> On Wed, Apr 20, 2011 at 5:09 AM, fykcee1 at gmail.com <fykcee1 at gmail.com> wrote:
>> Hi all,
>>
>> What does check_for_consoles do? It forces "details plugins" if
>> "console=ttyX" appears in kernel command line, seems strange.
>
> The idea is if you have a serial console enabled you probably don't
> want text animated progress bars
> going over it, so we force details if there is a serial console.
>
>>
>> I did some hack:
>> * Use add_default_displays_and_keyboard instead of check_for_consoles.
>> * Set state->kernel_console_tty to "/dev/console".
> careful, /dev/console is redirected if you start plymouthd with
> --attach-to-session (for managing boot.log).  If you use
> /dev/console there then you're potentially going to cause a feedback loop.
Thanks for the reply.
I guess we should filter out 'vt' in check_for_consoles, since a 'vt'
isn't a serial console. I've made a patch for it, seems working fine.



-- 
Regards,
- cee1
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 08-check_for_consoles-Filter-out-vt.patch
Type: application/octet-stream
Size: 3413 bytes
Desc: not available
URL: <http://lists.freedesktop.org/archives/plymouth/attachments/20110421/c8f19688/attachment.obj>


More information about the plymouth mailing list