From 9e72aa18325454e849d94f012d0fdd24930a769a Mon Sep 17 00:00:00 2001 From: Daan De Meyer Date: Thu, 27 Jul 2023 16:50:58 +0200 Subject: [PATCH] units: Load agetty credentials in all getty units In it's latest release, agetty will support reading the agetty.autologin and login.noauth credentials, so let's make sure we import those in our getty units so they're available to agetty to read. --- units/console-getty.service.in | 2 ++ units/container-getty@.service.in | 2 ++ units/getty@.service.in | 2 ++ units/serial-getty@.service.in | 2 ++ 4 files changed, 8 insertions(+) diff --git a/units/console-getty.service.in b/units/console-getty.service.in index d7e90ed847..d64112be5e 100644 --- a/units/console-getty.service.in +++ b/units/console-getty.service.in @@ -36,6 +36,8 @@ KillMode=process {% endif %} IgnoreSIGPIPE=no SendSIGHUP=yes +ImportCredential=agetty.* +ImportCredential=login.* [Install] WantedBy=getty.target diff --git a/units/container-getty@.service.in b/units/container-getty@.service.in index b8c47d4dd0..8847d735fb 100644 --- a/units/container-getty@.service.in +++ b/units/container-getty@.service.in @@ -42,3 +42,5 @@ KillMode=process {% endif %} IgnoreSIGPIPE=no SendSIGHUP=yes +ImportCredential=agetty.* +ImportCredential=login.* diff --git a/units/getty@.service.in b/units/getty@.service.in index 853722417b..80b8f3e922 100644 --- a/units/getty@.service.in +++ b/units/getty@.service.in @@ -54,6 +54,8 @@ KillMode=process {% endif %} IgnoreSIGPIPE=no SendSIGHUP=yes +ImportCredential=agetty.* +ImportCredential=login.* # Unset locale for the console getty since the console has problems # displaying some internationalized messages. diff --git a/units/serial-getty@.service.in b/units/serial-getty@.service.in index 9e2b49ce6b..6bf101eac9 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=agetty.* +ImportCredential=login.* [Install] WantedBy=getty.target