]> code.ossystems Code Review - openembedded-core.git/commit
base-files: resize only serial tty's in profile
authorDaniel Díaz <daniel.diaz@linaro.org>
Thu, 23 Mar 2017 21:34:44 +0000 (15:34 -0600)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Fri, 31 Mar 2017 11:27:46 +0000 (12:27 +0100)
commit474ef7c95722aa68ee5dfbae2920d7c3d436d717
tree74e76bee4c680a47528b860dad709bcb200586d9
parentb791f13286c8c58ce1f3fa3745ffdd5bd5ff1d02
base-files: resize only serial tty's in profile

We don't want to run resize on non serial consoles. There's
been an earlier attempt (6557787), so this builds upon that.

The problem we're seeing is that if there is text buffered in
the virtual console (like from a desperate user trying to
enter login details), resize will get stuck while calling
  ioctl(tty, TCSETAW);

Since serial consoles are named (not just numbered), this
change limits resize's reach even further to run only on
/dev/tty[A-z] (thus avoiding /dev/tty[0-9]).

Signed-off-by: Daniel Díaz <daniel.diaz@linaro.org>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/recipes-core/base-files/base-files/profile