summaryrefslogtreecommitdiff
path: root/units/console-getty.service.in
diff options
context:
space:
mode:
authorDaan De Meyer <daan.j.demeyer@gmail.com>2022-07-19 10:37:05 +0200
committerDaan De Meyer <daan.j.demeyer@gmail.com>2022-07-28 21:30:53 +0200
commit219fa78b5fa2ec9c13dd87419366116e3197693f (patch)
tree51d93da38664ef14bbe8ca4aaf674051ce1e6657 /units/console-getty.service.in
parent71ec216e86173b5705772730c06d6ccaa16d598a (diff)
downloadsystemd-219fa78b5fa2ec9c13dd87419366116e3197693f.tar.gz
units: Simplify container getty handling
Let's remove the baud settings for the container getty units since they don't have any effect there anyway. On top of that, when we're dealing with container TTYs, we can handle all the setup involved ourselves so let's prevent agetty/login from touching the container tty at all. One example where this helps is that it actually makes disabling TTYVHangup have an effect since before, login would unconditionally call vhangup() on the tty.
Diffstat (limited to 'units/console-getty.service.in')
-rw-r--r--units/console-getty.service.in5
1 files changed, 2 insertions, 3 deletions
diff --git a/units/console-getty.service.in b/units/console-getty.service.in
index 73871d6f50..606b7dbe16 100644
--- a/units/console-getty.service.in
+++ b/units/console-getty.service.in
@@ -20,9 +20,8 @@ Before=getty.target
ConditionPathExists=/dev/console
[Service]
-# 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.
+# 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' --noclear --keep-baud - 115200,38400,9600 $TERM
Type=idle
Restart=always