summaryrefslogtreecommitdiffstats
path: root/units
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2024-09-06 16:30:54 +0200
committerLennart Poettering <lennart@poettering.net>2024-09-09 19:03:48 +0200
commit229d4a980607e9478cf1935793652ddd9a14618b (patch)
tree67a8fa54e607e3d1aa16427829dda3dcc08f87f9 /units
parentmachinectl: suppress redirection notice if --quiet is specified (diff)
downloadsystemd-229d4a980607e9478cf1935793652ddd9a14618b.tar.xz
systemd-229d4a980607e9478cf1935793652ddd9a14618b.zip
shell: define three system credentials we can propagate into shell prompts and welcome messages
Diffstat (limited to 'units')
-rw-r--r--units/console-getty.service.in1
-rw-r--r--units/container-getty@.service.in1
-rw-r--r--units/getty@.service.in1
-rw-r--r--units/serial-getty@.service.in1
4 files changed, 4 insertions, 0 deletions
diff --git a/units/console-getty.service.in b/units/console-getty.service.in
index 575a7770c9..33e6368db1 100644
--- a/units/console-getty.service.in
+++ b/units/console-getty.service.in
@@ -40,6 +40,7 @@ ImportCredential=tty.console.agetty.*:agetty.
ImportCredential=tty.console.login.*:login.
ImportCredential=agetty.*
ImportCredential=login.*
+ImportCredential=shell.*
[Install]
WantedBy=getty.target
diff --git a/units/container-getty@.service.in b/units/container-getty@.service.in
index 6bee309bf5..7573532d6d 100644
--- a/units/container-getty@.service.in
+++ b/units/container-getty@.service.in
@@ -46,3 +46,4 @@ ImportCredential=tty.container.%I.agetty.*:agetty.
ImportCredential=tty.container.%I.login.*:login.
ImportCredential=agetty.*
ImportCredential=login.*
+ImportCredential=shell.*
diff --git a/units/getty@.service.in b/units/getty@.service.in
index 3ea95e1ee4..f30bba406d 100644
--- a/units/getty@.service.in
+++ b/units/getty@.service.in
@@ -56,6 +56,7 @@ ImportCredential=tty.virtual.%I.agetty.*:agetty.
ImportCredential=tty.virtual.%I.login.*:login.
ImportCredential=agetty.*
ImportCredential=login.*
+ImportCredential=shell.*
# 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 a071241ef9..20a5eb2754 100644
--- a/units/serial-getty@.service.in
+++ b/units/serial-getty@.service.in
@@ -50,6 +50,7 @@ ImportCredential=tty.serial.%I.agetty.*:agetty.
ImportCredential=tty.serial.%I.login.*:login.
ImportCredential=agetty.*
ImportCredential=login.*
+ImportCredential=shell.*
[Install]
WantedBy=getty.target