diff options
author | Daan De Meyer <daan.j.demeyer@gmail.com> | 2024-07-30 16:22:34 +0200 |
---|---|---|
committer | Daan De Meyer <daan.j.demeyer@gmail.com> | 2024-07-31 15:52:29 +0200 |
commit | e97429902dd75744e6df8d147e7ddea8d69a2e91 (patch) | |
tree | 2ed05e74e59661728143112349b3a092841907c6 | |
parent | core: Add support for renaming credentials with ImportCredential= (diff) | |
download | systemd-e97429902dd75744e6df8d147e7ddea8d69a2e91.tar.xz systemd-e97429902dd75744e6df8d147e7ddea8d69a2e91.zip |
units: Import tty specific credentials for each getty unit
As explained in the previous commit, this allows us to configure
agetty and login for individual ttys instead of globally.
-rw-r--r-- | units/console-getty.service.in | 2 | ||||
-rw-r--r-- | units/container-getty@.service.in | 2 | ||||
-rw-r--r-- | units/getty@.service.in | 2 | ||||
-rw-r--r-- | units/serial-getty@.service.in | 2 |
4 files changed, 8 insertions, 0 deletions
diff --git a/units/console-getty.service.in b/units/console-getty.service.in index 2de31dd01a..841c4496f0 100644 --- a/units/console-getty.service.in +++ b/units/console-getty.service.in @@ -37,6 +37,8 @@ KillMode=process {% endif %} IgnoreSIGPIPE=no SendSIGHUP=yes +ImportCredential=tty.console.agetty.*:agetty. +ImportCredential=tty.console.login.*:login. ImportCredential=agetty.* ImportCredential=login.* diff --git a/units/container-getty@.service.in b/units/container-getty@.service.in index 7e277a49bc..1f63383641 100644 --- a/units/container-getty@.service.in +++ b/units/container-getty@.service.in @@ -43,5 +43,7 @@ KillMode=process {% endif %} IgnoreSIGPIPE=no SendSIGHUP=yes +ImportCredential=tty.container.%I.agetty.*:agetty. +ImportCredential=tty.container.%I.login.*:login. ImportCredential=agetty.* ImportCredential=login.* diff --git a/units/getty@.service.in b/units/getty@.service.in index ce8db9764e..983f6dba49 100644 --- a/units/getty@.service.in +++ b/units/getty@.service.in @@ -53,6 +53,8 @@ KillMode=process {% endif %} IgnoreSIGPIPE=no SendSIGHUP=yes +ImportCredential=tty.virtual.%I.agetty.*:agetty. +ImportCredential=tty.virtual.%I.login.*:login. ImportCredential=agetty.* ImportCredential=login.* diff --git a/units/serial-getty@.service.in b/units/serial-getty@.service.in index 5669b19aff..afb8ad06a7 100644 --- a/units/serial-getty@.service.in +++ b/units/serial-getty@.service.in @@ -47,6 +47,8 @@ KillMode=process {% endif %} IgnoreSIGPIPE=no SendSIGHUP=yes +ImportCredential=tty.serial.%I.agetty.*:agetty. +ImportCredential=tty.serial.%I.login.*:login. ImportCredential=agetty.* ImportCredential=login.* |