diff options
author | Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> | 2020-05-07 16:16:19 +0200 |
---|---|---|
committer | Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> | 2020-05-07 17:36:44 +0200 |
commit | e97708fa3e029902c02676bba6e6c2f54f1eba3a (patch) | |
tree | 349570a01163d44533cde31019e6c66a3b200ef4 /man/standard-specifiers.xml | |
parent | eef4b80033e9ca8e61ccb40a710babcfe9b69b26 (diff) | |
download | systemd-e97708fa3e029902c02676bba6e6c2f54f1eba3a.tar.gz |
Add %l as specifier for the hostname without any domain component
As described in #15603, it is a fairly common setup to use a fqdn as the
configured hostname. But it is often convenient to use just the actual
hostname, i.e. until the first dot. This adds support in tmpfiles, sysusers,
and unit files for %l which expands to that.
Fixes #15603.
Diffstat (limited to 'man/standard-specifiers.xml')
-rw-r--r-- | man/standard-specifiers.xml | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/man/standard-specifiers.xml b/man/standard-specifiers.xml index 0c258241df..3efbb6db00 100644 --- a/man/standard-specifiers.xml +++ b/man/standard-specifiers.xml @@ -24,6 +24,11 @@ <entry>Host name</entry> <entry>The hostname of the running system.</entry> </row> + <row id='l'> + <entry><literal>%l</literal></entry> + <entry>Short host name</entry> + <entry>The hostname of the running system, truncated at the first dot to remove any domain component.</entry> + </row> <row id='m'> <entry><literal>%m</literal></entry> <entry>Machine ID</entry> |