Uses motd
, issue
, and profile
to show helper messages before/at login.
The following messages are shown:
/etc/ssh
matching the regex ssh_host_*_key
, before login as an issueeth0
, before login as an issueHow to use:
Let x
denote {motd,issue}
.
x
gen scripts source files from /etc/console-login-helper-messages/x.d
, /run/console-login-helper-messages/x.d
, and /usr/lib/console-login-helper-messages/x.d
, and generate a file at /run/x.d/40_console-login-helper-messages.x
/etc/issue.d/console-login-helper-messages.issue -> /run/issue.d/console-login-helper-messages.issue
is created as agetty will only look for files in /etc/issue.d
as of today, so a symlink to the generated one is requiredx
s by placing files in /etc/x.d/
/etc/console-login-helper-messages/x.d/
to have the x
gen services append their files to the generated x
. This is to preserve Container Linux functionality where appending messages to the overall generated message was available, not just placing a file into a public directory then searched by programs like PAM/sshd and agetty.