2
1

systemd-fix-getty-unit.patch 1.0 KB

12345678910111213141516171819202122232425262728293031323334
  1. Prefer getty to agetty in console setup systemd units
  2. Signed-off-by: Maxime Ripard <maxime.ripard@free-electrons.com>
  3. ---
  4. units/getty@.service.m4 | 2 +-
  5. units/serial-getty@.service.m4 | 2 +-
  6. 2 files changed, 2 insertions(+), 2 deletions(-)
  7. Index: systemd-37/units/getty@.service.m4
  8. ===================================================================
  9. --- systemd-37.orig/units/getty@.service.m4
  10. +++ systemd-37/units/getty@.service.m4
  11. @@ -32,7 +32,7 @@
  12. [Service]
  13. Environment=TERM=linux
  14. -ExecStart=-/sbin/agetty %I 38400
  15. +ExecStart=-/sbin/getty -L %I 115200 vt100
  16. Restart=always
  17. RestartSec=0
  18. UtmpIdentifier=%I
  19. Index: systemd-37/units/serial-getty@.service.m4
  20. ===================================================================
  21. --- systemd-37.orig/units/serial-getty@.service.m4
  22. +++ systemd-37/units/serial-getty@.service.m4
  23. @@ -32,7 +32,7 @@
  24. [Service]
  25. Environment=TERM=vt100
  26. -ExecStart=-/sbin/agetty -s %I 115200,38400,9600
  27. +ExecStart=-/sbin/getty -L %I 115200 vt100
  28. Restart=always
  29. RestartSec=0
  30. UtmpIdentifier=%I