Patchwork [v4] serial-getty service: Add xterm as default TERM

login
register
mail settings
Submitter Joel Fernandes
Date May 4, 2014, 8:47 p.m.
Message ID <1399236465-3261-1-git-send-email-joelf@ti.com>
Download mbox | patch
Permalink /patch/71479/
State New
Headers show

Comments

Joel Fernandes - May 4, 2014, 8:47 p.m.
In poky with systemd enabled, vt102 is selected for getty
causing user to experience a very crappy terminal. Default
TERM to xterm.

Reviewed-by: Jonathan Liu <net147@gmail.com>
Signed-off-by: Joel Fernandes <joelf@ti.com>
---
v2: Removed PR bump.
v3: Changed TERM to xterm than linux, pass -8 to getty.
v4: Corrected patch title (Sorry!)

 .../systemd-serialgetty/serial-getty@.service      |    3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

Patch

diff --git a/meta/recipes-core/systemd/systemd-serialgetty/serial-getty@.service b/meta/recipes-core/systemd/systemd-serialgetty/serial-getty@.service
index 865de34..6dd335c 100644
--- a/meta/recipes-core/systemd/systemd-serialgetty/serial-getty@.service
+++ b/meta/recipes-core/systemd/systemd-serialgetty/serial-getty@.service
@@ -20,7 +20,8 @@  Before=getty.target
 IgnoreOnIsolate=yes
 
 [Service]
-ExecStart=-/sbin/agetty --keep-baud %I @BAUDRATE@ $TERM
+Environment="TERM=xterm"
+ExecStart=-/sbin/agetty -8 --keep-baud %I @BAUDRATE@ $TERM
 Type=idle
 Restart=always
 RestartSec=0