0001-fix-getty-unit.patch 1.1 KB

123456789101112131415161718192021222324252627282930
  1. Prefer getty to agetty in console setup systemd units
  2. Signed-off-by: Maxime Ripard <maxime.ripard@free-electrons.com>
  3. Signed-off-by: Eric Le Bihan <eric.le.bihan.dev@free.fr>
  4. ---
  5. diff -aburN systemd-212.orig/units/getty@.service.m4 systemd-212/units/getty@.service.m4
  6. --- systemd-212.orig/units/getty@.service.m4 2014-01-28 11:08:51.000000000 +0100
  7. +++ systemd-212/units/getty@.service.m4 2014-03-26 11:06:27.000000000 +0100
  8. @@ -27,7 +27,7 @@
  9. [Service]
  10. # the VT is cleared by TTYVTDisallocate
  11. -ExecStart=-/sbin/agetty --noclear %I $TERM
  12. +ExecStart=-/sbin/getty -L %I 115200 vt100
  13. Type=idle
  14. Restart=always
  15. RestartSec=0
  16. diff -aburN systemd-212.orig/units/serial-getty@.service.m4 systemd-212/units/serial-getty@.service.m4
  17. --- systemd-212.orig/units/serial-getty@.service.m4 2014-03-13 18:47:24.000000000 +0100
  18. +++ systemd-212/units/serial-getty@.service.m4 2014-03-26 11:07:01.000000000 +0100
  19. @@ -22,7 +22,7 @@
  20. IgnoreOnIsolate=yes
  21. [Service]
  22. -ExecStart=-/sbin/agetty --keep-baud 115200,38400,9600 %I $TERM
  23. +ExecStart=-/sbin/getty -L %I 115200 vt100
  24. Type=idle
  25. Restart=always
  26. RestartSec=0