chiark / gitweb /
units: teach m4 scripts in units/ about Debian's rc.local
[elogind.git] / units / getty@.service.m4
index 6d458360a4e67d2a65e82b800d2f5eb55ee0b009..b5875ce491a696153280caceee622f78a1222694 100644 (file)
@@ -12,6 +12,9 @@ After=systemd-user-sessions.service plymouth-quit-wait.service
 m4_ifdef(`TARGET_FEDORA',
 After=rc-local.service
 )m4_dnl
+m4_ifdef(`TARGET_DEBIAN',
+After=rc.local.service
+)m4_dnl
 m4_ifdef(`TARGET_ARCH',
 After=rc-local.service
 )m4_dnl
@@ -41,7 +44,8 @@ ConditionPathExists=/dev/tty0
 
 [Service]
 Environment=TERM=linux
-ExecStart=-/sbin/agetty %I 38400
+# the VT is cleared by TTYVTDisallocate
+ExecStart=-/sbin/agetty --noclear %I 38400
 Type=idle
 Restart=always
 RestartSec=0