diff options
author | Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> | 2020-03-03 20:29:12 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-03-03 20:29:12 +0100 |
commit | fbd6ac2601d628edf60c99cdf214e243b0b025ad (patch) | |
tree | 10e10132fe639748dded6b037162d9b13697251a | |
parent | efd58985f6e6771be7af6dac3256ed7544452359 (diff) | |
parent | d4de2b2afff6bc1f2d9ca960197bb0388c154221 (diff) | |
download | systemd-fbd6ac2601d628edf60c99cdf214e243b0b025ad.tar.gz |
Merge pull request #15009 from keszybz/version-and-doc-updates
Version and doc updates
-rw-r--r-- | .mkosi/mkosi.fedora | 2 | ||||
-rw-r--r-- | docs/PORTABILITY_AND_STABILITY.md | 2 | ||||
-rw-r--r-- | man/journald.conf.xml | 6 | ||||
-rw-r--r-- | man/systemd-nspawn.xml | 6 | ||||
-rw-r--r-- | man/systemd.link.xml | 7 | ||||
-rw-r--r-- | man/systemd.netdev.xml | 5 | ||||
-rw-r--r-- | man/systemd.network.xml | 31 | ||||
-rw-r--r-- | man/systemd.syntax.xml | 9 | ||||
-rw-r--r-- | src/core/dbus-manager.c | 2 | ||||
-rw-r--r-- | src/core/namespace.c | 2 | ||||
-rw-r--r-- | src/nspawn/nspawn.c | 2 | ||||
-rw-r--r-- | src/resolve/resolved-dns-scope.c | 2 | ||||
-rw-r--r-- | src/resolve/resolved-mdns.c | 2 | ||||
-rw-r--r-- | src/shared/module-util.c | 2 | ||||
-rw-r--r-- | src/systemctl/systemctl.c | 2 | ||||
-rw-r--r-- | src/test/test-btrfs.c | 2 | ||||
-rw-r--r-- | src/test/test-ns.c | 2 | ||||
-rw-r--r-- | src/timesync/timesyncd-manager.c | 2 | ||||
-rw-r--r-- | src/udev/udev-builtin-hwdb.c | 4 | ||||
-rw-r--r-- | test/mkosi.default.networkd-test | 1 | ||||
-rw-r--r-- | test/test-functions | 1 |
21 files changed, 56 insertions, 38 deletions
diff --git a/.mkosi/mkosi.fedora b/.mkosi/mkosi.fedora index 3717875366..01bfd2338b 100644 --- a/.mkosi/mkosi.fedora +++ b/.mkosi/mkosi.fedora @@ -10,7 +10,6 @@ Release=31 [Output] Format=gpt_ext4 Bootable=yes -KernelCommandLine=printk.devkmsg=on [Partitions] RootSize=3G @@ -27,6 +26,7 @@ BuildPackages= gcc gettext git + glibc-minimal-langpack gnu-efi gnu-efi-devel gnutls-devel diff --git a/docs/PORTABILITY_AND_STABILITY.md b/docs/PORTABILITY_AND_STABILITY.md index ebea93b526..95bfcb98d3 100644 --- a/docs/PORTABILITY_AND_STABILITY.md +++ b/docs/PORTABILITY_AND_STABILITY.md @@ -96,6 +96,8 @@ And now, here's the list of (hopefully) all APIs that we have introduced with sy | [$NOTIFY_SOCKET Daemon Notifications](https://www.freedesktop.org/software/systemd/man/sd_notify.html) | Environment | yes | yes | a few, including udev | yes | - | no | | [argv[0][0]='@' Logic](https://www.freedesktop.org/wiki/Software/systemd/RootStorageDaemons) | `/proc` marking | yes | yes | mdadm | yes | - | no | | [Unit file format](https://www.freedesktop.org/software/systemd/man/systemd.unit.html) | File format | yes | yes | numerous | no | - | no | +| [Network](https://www.freedesktop.org/software/systemd/man/systemd.network.html) & [Netdev file format](https://www.freedesktop.org/software/systemd/man/systemd.netdev.html) | File format | yes | yes | no | no | - | no | +| [Link file format](https://www.freedesktop.org/software/systemd/man/systemd.link.html) | File format | yes | yes | no | no | - | no | | [Journal File Format](https://www.freedesktop.org/wiki/Software/systemd/journal-files) | File format | yes | yes | - | maybe | - | no | | [Journal Export Format](https://www.freedesktop.org/wiki/Software/systemd/export) | File format | yes | yes | - | yes | - | no | | [Cooperation in cgroup tree](https://www.freedesktop.org/wiki/Software/systemd/PaxControlGroups) | Treaty | yes | yes | libvirt | yes | libvirt | no | diff --git a/man/journald.conf.xml b/man/journald.conf.xml index afbbe64bb8..e24c420ab0 100644 --- a/man/journald.conf.xml +++ b/man/journald.conf.xml @@ -350,9 +350,9 @@ <varname>TTYPath=</varname>, described below.</para> <para>When forwarding to the kernel log buffer (kmsg), make sure to select a suitably large size for - the log buffer, and ensure the kernel's rate-limiting applied to userspace processes is turned - off. Specifically, add <literal>log_buf_len=8M</literal> and <literal>printk.devkmsg=on</literal> (or - similar) to the kernel command line.</para></listitem> + the log buffer, for example by adding <literal>log_buf_len=8M</literal> to the kernel command line. + <command>systemd</command> will automatically disable kernel's rate-limiting applied to userspace + processes (equivalent to setting <literal>printk.devkmsg=on</literal>).</para></listitem> </varlistentry> <varlistentry> diff --git a/man/systemd-nspawn.xml b/man/systemd-nspawn.xml index 0b7959e06f..b269b99170 100644 --- a/man/systemd-nspawn.xml +++ b/man/systemd-nspawn.xml @@ -1,8 +1,8 @@ <?xml version='1.0'?> <!DOCTYPE refentry PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN" "http://www.oasis-open.org/docbook/xml/4.2/docbookx.dtd" [ -<!ENTITY fedora_latest_version "30"> -<!ENTITY fedora_cloud_release "1.2"> +<!ENTITY fedora_latest_version "31"> +<!ENTITY fedora_cloud_release "1.9"> ]> <!-- SPDX-License-Identifier: LGPL-2.1+ --> @@ -1378,7 +1378,7 @@ <programlisting># dnf -y --releasever=&fedora_latest_version; --installroot=/var/lib/machines/f&fedora_latest_version; \ --disablerepo='*' --enablerepo=fedora --enablerepo=updates install \ - systemd passwd dnf fedora-release vim-minimal + systemd passwd dnf fedora-release vim-minimal glibc-minimal-langpack # systemd-nspawn -bD /var/lib/machines/f&fedora_latest_version;</programlisting> <para>This installs a minimal Fedora distribution into the diff --git a/man/systemd.link.xml b/man/systemd.link.xml index 130cc78693..1dca495a03 100644 --- a/man/systemd.link.xml +++ b/man/systemd.link.xml @@ -26,8 +26,11 @@ <refsect1> <title>Description</title> - <para>Network link configuration is performed by the - <command>net_setup_link</command> udev builtin.</para> + <para>A plain ini-style text file that encodes configuration for matching network devices, used by + <citerefentry><refentrytitle>systemd-udev</refentrytitle><manvolnum>8</manvolnum></citerefentry> and in + particular its <command>net_setup_link</command> builtin. See + <citerefentry><refentrytitle>systemd.syntax</refentrytitle><manvolnum>5</manvolnum></citerefentry> for a + general description of the syntax.</para> <para>The link files are read from the files located in the system network directory <filename>/usr/lib/systemd/network</filename>, diff --git a/man/systemd.netdev.xml b/man/systemd.netdev.xml index 6e215a38bb..6ad1dc9e73 100644 --- a/man/systemd.netdev.xml +++ b/man/systemd.netdev.xml @@ -27,9 +27,10 @@ <refsect1> <title>Description</title> - <para>Network setup is performed by + <para>A plain ini-style text file that encodes configuration about a virtual network device, used by <citerefentry><refentrytitle>systemd-networkd</refentrytitle><manvolnum>8</manvolnum></citerefentry>. - </para> + See <citerefentry><refentrytitle>systemd.syntax</refentrytitle><manvolnum>5</manvolnum></citerefentry> + for a general description of the syntax.</para> <para>The main Virtual Network Device file must have the extension <filename>.netdev</filename>; other extensions are ignored. Virtual network devices are created as soon as networkd is diff --git a/man/systemd.network.xml b/man/systemd.network.xml index 7d02b11d20..bd19b766c3 100644 --- a/man/systemd.network.xml +++ b/man/systemd.network.xml @@ -28,9 +28,11 @@ <refsect1> <title>Description</title> - <para>Network setup is performed by + <para>A plain ini-style text file that encodes network configuration for matching network interfaces, + used by <citerefentry><refentrytitle>systemd-networkd</refentrytitle><manvolnum>8</manvolnum></citerefentry>. - </para> + See <citerefentry><refentrytitle>systemd.syntax</refentrytitle><manvolnum>5</manvolnum></citerefentry> + for a general description of the syntax.</para> <para>The main network file must have the extension <filename>.network</filename>; other extensions are ignored. Networks are applied to links whenever the links appear.</para> @@ -514,13 +516,14 @@ <varlistentry> <term><varname>Domains=</varname></term> <listitem> - <para>A list of domains which should be resolved using the DNS servers on this link. Each item in the list - should be a domain name, optionally prefixed with a tilde (<literal>~</literal>). The domains with the - prefix are called "routing-only domains". The domains without the prefix are called "search domains" and - are first used as search suffixes for extending single-label host names (host names containing no dots) to - become fully qualified domain names (FQDNs). If a single-label host name is resolved on this interface, - each of the specified search domains are appended to it in turn, converting it into a fully qualified - domain name, until one of them may be successfully resolved.</para> + <para>A whitespace-separated list of domains which should be resolved using the DNS servers on + this link. Each item in the list should be a domain name, optionally prefixed with a tilde + (<literal>~</literal>). The domains with the prefix are called "routing-only domains". The + domains without the prefix are called "search domains" and are first used as search suffixes for + extending single-label host names (host names containing no dots) to become fully qualified + domain names (FQDNs). If a single-label host name is resolved on this interface, each of the + specified search domains are appended to it in turn, converting it into a fully qualified domain + name, until one of them may be successfully resolved.</para> <para>Both "search" and "routing-only" domains are used for routing of DNS queries: look-ups for host names ending in those domains (hence also single label names, if any "search domains" are listed), are routed to @@ -613,10 +616,12 @@ </varlistentry> <varlistentry> <term><varname>IPv6AcceptRA=</varname></term> - <listitem><para>Takes a boolean. Controls IPv6 Router Advertisement (RA) reception support - for the interface. If true, RAs are accepted; if false, RAs are ignored, independently of the - local forwarding state. When RAs are accepted, they may trigger the start of the DHCPv6 - client if the relevant flags are set in the RA data, or if no routers are found on the link.</para> + <listitem><para>Takes a boolean. Controls IPv6 Router Advertisement (RA) reception support for the + interface. If true, RAs are accepted; if false, RAs are ignored. When RAs are accepted, they may + trigger the start of the DHCPv6 client if the relevant flags are set in the RA data, or if no + routers are found on the link. The default is to disable RA reception for bridge devices or when IP + forwarding is enabled, and to enable it otherwise. Cannot be enabled on bond devices and when link + local adressing is disabled.</para> <para>Further settings for the IPv6 RA support may be configured in the <literal>[IPv6AcceptRA]</literal> section, see below.</para> diff --git a/man/systemd.syntax.xml b/man/systemd.syntax.xml index 05786cc534..04b1564b17 100644 --- a/man/systemd.syntax.xml +++ b/man/systemd.syntax.xml @@ -46,6 +46,15 @@ <citerefentry><refentrytitle>systemd.nspawn</refentrytitle><manvolnum>5</manvolnum></citerefentry> </para></listitem> + <listitem><para>link files, see + <citerefentry><refentrytitle>systemd.link</refentrytitle><manvolnum>5</manvolnum></citerefentry> + </para></listitem> + + <listitem><para>netdev and network files, see + <citerefentry><refentrytitle>systemd.netdev</refentrytitle><manvolnum>5</manvolnum></citerefentry>, + <citerefentry><refentrytitle>systemd.network</refentrytitle><manvolnum>5</manvolnum></citerefentry> + </para></listitem> + <listitem><para>daemon config files, see <citerefentry><refentrytitle>systemd-system.conf</refentrytitle><manvolnum>5</manvolnum></citerefentry>, <citerefentry><refentrytitle>systemd-user.conf</refentrytitle><manvolnum>5</manvolnum></citerefentry>, diff --git a/src/core/dbus-manager.c b/src/core/dbus-manager.c index 46b6082a25..60f55aef5f 100644 --- a/src/core/dbus-manager.c +++ b/src/core/dbus-manager.c @@ -1713,7 +1713,7 @@ static int method_get_dynamic_users(sd_bus_message *message, void *userdata, sd_ if (r == -EAGAIN) /* not realized yet? */ continue; if (r < 0) - return sd_bus_error_setf(error, SD_BUS_ERROR_FAILED, "Failed to lookup a dynamic user."); + return sd_bus_error_setf(error, SD_BUS_ERROR_FAILED, "Failed to look up a dynamic user."); r = sd_bus_message_append(reply, "(us)", uid, d->name); if (r < 0) diff --git a/src/core/namespace.c b/src/core/namespace.c index 07c9ac2b51..cda9d2ca1d 100644 --- a/src/core/namespace.c +++ b/src/core/namespace.c @@ -749,7 +749,7 @@ static int mount_private_dev(MountEntry *m) { r = dev_setup(temporary_mount, UID_INVALID, GID_INVALID); if (r < 0) - log_debug_errno(r, "Failed to setup basic device tree at '%s', ignoring: %m", temporary_mount); + log_debug_errno(r, "Failed to set up basic device tree at '%s', ignoring: %m", temporary_mount); /* Create the /dev directory if missing. It is more likely to be * missing when the service is started with RootDirectory. This is diff --git a/src/nspawn/nspawn.c b/src/nspawn/nspawn.c index 2a63315a4c..f2f420c26f 100644 --- a/src/nspawn/nspawn.c +++ b/src/nspawn/nspawn.c @@ -3020,7 +3020,7 @@ static int inner_child( r = setup_dev_console(console); if (r < 0) - return log_error_errno(r, "Failed to setup /dev/console: %m"); + return log_error_errno(r, "Failed to set up /dev/console: %m"); r = send_one_fd(master_pty_socket, master, 0); if (r < 0) diff --git a/src/resolve/resolved-dns-scope.c b/src/resolve/resolved-dns-scope.c index 691f07945f..d7e7b5a853 100644 --- a/src/resolve/resolved-dns-scope.c +++ b/src/resolve/resolved-dns-scope.c @@ -863,7 +863,7 @@ void dns_scope_process_query(DnsScope *s, DnsStream *stream, DnsPacket *p) { r = dns_zone_lookup(&s->zone, key, 0, &answer, &soa, &tentative); if (r < 0) { - log_debug_errno(r, "Failed to lookup key: %m"); + log_debug_errno(r, "Failed to look up key: %m"); return; } if (r == 0) diff --git a/src/resolve/resolved-mdns.c b/src/resolve/resolved-mdns.c index eba2978991..921720febf 100644 --- a/src/resolve/resolved-mdns.c +++ b/src/resolve/resolved-mdns.c @@ -195,7 +195,7 @@ static int mdns_scope_process_query(DnsScope *s, DnsPacket *p) { r = dns_zone_lookup(&s->zone, key, 0, &answer, &soa, &tentative); if (r < 0) - return log_debug_errno(r, "Failed to lookup key: %m"); + return log_debug_errno(r, "Failed to look up key: %m"); if (tentative && DNS_PACKET_NSCOUNT(p) > 0) { /* diff --git a/src/shared/module-util.c b/src/shared/module-util.c index 75c8ba2b78..9173cf2ffd 100644 --- a/src/shared/module-util.c +++ b/src/shared/module-util.c @@ -18,7 +18,7 @@ int module_load_and_warn(struct kmod_ctx *ctx, const char *module, bool verbose) r = kmod_module_new_from_lookup(ctx, module, &modlist); if (r < 0) return log_full_errno(verbose ? LOG_ERR : LOG_DEBUG, r, - "Failed to lookup module alias '%s': %m", module); + "Failed to look up module alias '%s': %m", module); if (!modlist) { log_full_errno(verbose ? LOG_ERR : LOG_DEBUG, r, diff --git a/src/systemctl/systemctl.c b/src/systemctl/systemctl.c index 771ede7397..f44db4ffc3 100644 --- a/src/systemctl/systemctl.c +++ b/src/systemctl/systemctl.c @@ -6590,7 +6590,7 @@ static int enable_sysv_units(const char *verb, char **args) { j = unit_file_exists(arg_scope, &paths, name); if (j < 0 && !IN_SET(j, -ELOOP, -ERFKILL, -EADDRNOTAVAIL)) - return log_error_errno(j, "Failed to lookup unit file state: %m"); + return log_error_errno(j, "Failed to look up unit file state: %m"); found_native = j != 0; /* If we have both a native unit and a SysV script, enable/disable them both (below); for is-enabled, diff --git a/src/test/test-btrfs.c b/src/test/test-btrfs.c index 5bd0e3458c..9dbe4dccd1 100644 --- a/src/test/test-btrfs.c +++ b/src/test/test-btrfs.c @@ -155,7 +155,7 @@ int main(int argc, char *argv[]) { r = btrfs_subvol_snapshot("/xxxquotatest", "/xxxquotatest2", BTRFS_SNAPSHOT_RECURSIVE|BTRFS_SNAPSHOT_QUOTA); if (r < 0) - log_error_errno(r, "Failed to setup snapshot: %m"); + log_error_errno(r, "Failed to set up snapshot: %m"); r = btrfs_qgroup_get_quota("/xxxquotatest2/beneath", 0, "a); if (r < 0) diff --git a/src/test/test-ns.c b/src/test/test-ns.c index 48a5ff9f2d..cf8b08ba9b 100644 --- a/src/test/test-ns.c +++ b/src/test/test-ns.c @@ -79,7 +79,7 @@ int main(int argc, char *argv[]) { 0, NULL); if (r < 0) { - log_error_errno(r, "Failed to setup namespace: %m"); + log_error_errno(r, "Failed to set up namespace: %m"); log_info("Usage:\n" " sudo TEST_NS_PROJECTS=/home/lennart/projects ./test-ns\n" diff --git a/src/timesync/timesyncd-manager.c b/src/timesync/timesyncd-manager.c index 7b71e98f56..e18e1e6c04 100644 --- a/src/timesync/timesyncd-manager.c +++ b/src/timesync/timesyncd-manager.c @@ -110,7 +110,7 @@ static int manager_send_request(Manager *m) { r = manager_listen_setup(m); if (r < 0) - return log_warning_errno(r, "Failed to setup connection socket: %m"); + return log_warning_errno(r, "Failed to set up connection socket: %m"); /* * Set transmit timestamp, remember it; the server will send that back diff --git a/src/udev/udev-builtin-hwdb.c b/src/udev/udev-builtin-hwdb.c index 36cda504e7..8e86d2f0d1 100644 --- a/src/udev/udev-builtin-hwdb.c +++ b/src/udev/udev-builtin-hwdb.c @@ -163,7 +163,7 @@ static int builtin_hwdb(sd_device *dev, int argc, char *argv[], bool test) { if (argv[optind]) { r = udev_builtin_hwdb_lookup(dev, prefix, argv[optind], filter, test); if (r < 0) - return log_device_debug_errno(dev, r, "Failed to lookup hwdb: %m"); + return log_device_debug_errno(dev, r, "Failed to look up hwdb: %m"); if (r == 0) return log_device_debug_errno(dev, SYNTHETIC_ERRNO(ENODATA), "No entry found from hwdb."); return r; @@ -178,7 +178,7 @@ static int builtin_hwdb(sd_device *dev, int argc, char *argv[], bool test) { r = udev_builtin_hwdb_search(dev, srcdev, subsystem, prefix, filter, test); if (r < 0) - return log_device_debug_errno(dev, r, "Failed to lookup hwdb: %m"); + return log_device_debug_errno(dev, r, "Failed to look up hwdb: %m"); if (r == 0) return log_device_debug_errno(dev, SYNTHETIC_ERRNO(ENODATA), "No entry found from hwdb."); return r; diff --git a/test/mkosi.default.networkd-test b/test/mkosi.default.networkd-test index 58af352f6f..6032c33c3a 100644 --- a/test/mkosi.default.networkd-test +++ b/test/mkosi.default.networkd-test @@ -10,7 +10,6 @@ Release=29 [Output] Format=raw_btrfs Bootable=yes -KernelCommandLine=printk.devkmsg=on OutputDirectory=../mkosi.output Output=networkd-test.raw diff --git a/test/test-functions b/test/test-functions index 1bba8e429b..e4ec4f025f 100644 --- a/test/test-functions +++ b/test/test-functions @@ -212,7 +212,6 @@ loglevel=2 \ init=$PATH_TO_INIT \ console=$CONSOLE \ selinux=0 \ -printk.devkmsg=on \ $_cgroup_args \ $KERNEL_APPEND \ " |