diff options
Diffstat (limited to 'core/modules/systemd/data/usr/lib/systemd/system/serial-getty@.service')
-rw-r--r-- | core/modules/systemd/data/usr/lib/systemd/system/serial-getty@.service | 18 |
1 files changed, 13 insertions, 5 deletions
diff --git a/core/modules/systemd/data/usr/lib/systemd/system/serial-getty@.service b/core/modules/systemd/data/usr/lib/systemd/system/serial-getty@.service index 5f289500..fb7b6e78 100644 --- a/core/modules/systemd/data/usr/lib/systemd/system/serial-getty@.service +++ b/core/modules/systemd/data/usr/lib/systemd/system/serial-getty@.service @@ -19,18 +19,26 @@ After=rc-local.service Before=getty.target IgnoreOnIsolate=yes +# IgnoreOnIsolate causes issues with sulogin, if someone isolates +# rescue.target or starts rescue.service from multi-user.target or +# graphical.target. +Conflicts=rescue.service +Before=rescue.service + [Service] -ExecStart=-/sbin/agetty -s %I 115200,38400,9600 vt102 +# The '-o' option value tells agetty to replace 'login' arguments with an +# option to preserve environment (-p), followed by '--' for safety, and then +# the entered username. +ExecStart=-/sbin/agetty -o '-p -- \\u' --keep-baud 115200,38400,9600 %I $TERM Type=idle Restart=always -RestartSec=0 UtmpIdentifier=%I TTYPath=/dev/%I TTYReset=yes TTYVHangup=yes KillMode=process IgnoreSIGPIPE=no +SendSIGHUP=yes -# Some login implementations ignore SIGTERM, so we send SIGHUP -# instead, to ensure that login terminates cleanly. -KillSignal=SIGHUP +[Install] +WantedBy=getty.target |