]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
units: Load agetty credentials in all getty units 28540/head
authorDaan De Meyer <daan.j.demeyer@gmail.com>
Thu, 27 Jul 2023 14:50:58 +0000 (16:50 +0200)
committerDaan De Meyer <daan.j.demeyer@gmail.com>
Thu, 27 Jul 2023 14:50:58 +0000 (16:50 +0200)
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
units/container-getty@.service.in
units/getty@.service.in
units/serial-getty@.service.in

index d7e90ed8479e3b227275a33e7222e95a8b2bc908..d64112be5ef03a6dd7ef753f37dfc40e10443d11 100644 (file)
@@ -36,6 +36,8 @@ KillMode=process
 {% endif %}
 IgnoreSIGPIPE=no
 SendSIGHUP=yes
+ImportCredential=agetty.*
+ImportCredential=login.*
 
 [Install]
 WantedBy=getty.target
index b8c47d4dd06cd2fa33c07f3a3859f7191480a9ca..8847d735fbd2371f563ece5b5f03e76bb5b85004 100644 (file)
@@ -42,3 +42,5 @@ KillMode=process
 {% endif %}
 IgnoreSIGPIPE=no
 SendSIGHUP=yes
+ImportCredential=agetty.*
+ImportCredential=login.*
index 853722417b994870333345b32b1e0f36d1b9d15e..80b8f3e9228d923a6656be13bb245463b9024918 100644 (file)
@@ -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.
index 9e2b49ce6bffe700d05b8c420cef0dbe8fe19ae1..6bf101eac9aefeb4605235adeff004c9b20deea3 100644 (file)
@@ -47,6 +47,8 @@ KillMode=process
 {% endif %}
 IgnoreSIGPIPE=no
 SendSIGHUP=yes
+ImportCredential=agetty.*
+ImportCredential=login.*
 
 [Install]
 WantedBy=getty.target