]> git.ipfire.org Git - thirdparty/util-linux.git/commit
agetty: add support for /etc/issue.d
authorKarel Zak <kzak@redhat.com>
Tue, 7 Nov 2017 10:32:32 +0000 (11:32 +0100)
committerKarel Zak <kzak@redhat.com>
Tue, 7 Nov 2017 10:32:32 +0000 (11:32 +0100)
commit1fc82a1360305f696dc1be6105c9c56a9ea03f52
tree035990932961deeed632b647594797da3325c2e7
parente7f9744ef551d1ce22b7710f6a8db38b73ab3f47
agetty: add support for /etc/issue.d

The /etc/issue file has been originally designed to inform users
about the system (version, name, etc.).

In last years is growing number of additional tools (containers,
maintenance tools and interfaces, ...) and many admins and downstream
maintainer want to add some tool specific hints to the issue file, but
it mess to share one file between more packages and/or scripts. The
solution is /etc/issue.d directory.

The directory is extension to the standard system /etc/issue. The
/etc/issue file has to exist, otherwise the directory will be ignored.
It means "rm /etc/issue" (or --onissue) is still the way how keep our
system silent independently on 3rd-party installed files in the
/etc/issue.d directory.

The content of the files in the directory are printed after content of
the /etc/issue. The files are printed in version-sort order and .issue
file extension is required (00-foo.issue 01-bar.issue ...).

The change is backwardly compatible.

Signed-off-by: Karel Zak <kzak@redhat.com>
include/pathnames.h
term-utils/agetty.8
term-utils/agetty.c