diff options
author | Karel Zak | 2017-11-07 11:32:32 +0100 |
---|---|---|
committer | Karel Zak | 2017-11-07 11:32:32 +0100 |
commit | 1fc82a1360305f696dc1be6105c9c56a9ea03f52 (patch) | |
tree | 035990932961deeed632b647594797da3325c2e7 /include/pathnames.h | |
parent | agetty: remove unused flag (diff) | |
download | kernel-qcow2-util-linux-1fc82a1360305f696dc1be6105c9c56a9ea03f52.tar.gz kernel-qcow2-util-linux-1fc82a1360305f696dc1be6105c9c56a9ea03f52.tar.xz kernel-qcow2-util-linux-1fc82a1360305f696dc1be6105c9c56a9ea03f52.zip |
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>
Diffstat (limited to 'include/pathnames.h')
-rw-r--r-- | include/pathnames.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/pathnames.h b/include/pathnames.h index 0778d4f20..59cc66736 100644 --- a/include/pathnames.h +++ b/include/pathnames.h @@ -69,6 +69,8 @@ #endif #define _PATH_ISSUE "/etc/issue" +#define _PATH_ISSUEDIR _PATH_ISSUE ".d" + #define _PATH_OS_RELEASE_ETC "/etc/os-release" #define _PATH_OS_RELEASE_USR "/usr/lib/os-release" #define _PATH_NUMLOCK_ON _PATH_RUNSTATEDIR "/numlock-on" |