]> git.ipfire.org Git - thirdparty/plymouth.git/commit
details: Don't replay boot buffer on serial consoles
authorRay Strode <rstrode@redhat.com>
Tue, 30 Aug 2022 18:41:36 +0000 (14:41 -0400)
committerRay Strode <halfline@gmail.com>
Sat, 15 Oct 2022 19:39:12 +0000 (19:39 +0000)
commit45c3a40abda90cc8c6bf7534abd9a3c3e8710e34
tree7c562bf2876f225e6c36055ea5a5f7181a714db5
parent2370412c10c97e321744e5d892cf9060afe7f5d7
details: Don't replay boot buffer on serial consoles

commit 0e59dde8 changed the details plugin to clear the terminal when
first opening it. This was done to prevent duplicate messages from
showing up when toggling back and forth between details and graphical
splashes.

That has the negative side effect of purging serial console output too
though. Furthermore, it makes little sense to replay the boot buffer
on serial consoles, since serial consoles don't aggressively purge
scrollback like VTs do.

This commit adds a check to make sure the terminal is a VT before trying
to clear and replay the scrollback buffer.

Closes: https://gitlab.freedesktop.org/plymouth/plymouth/-/issues/187
src/plugins/splash/details/plugin.c