1
1
mirror of https://github.com/systemd/systemd-stable.git synced 2025-01-07 17:17:44 +03:00
Commit Graph

5511 Commits

Author SHA1 Message Date
Zbigniew Jędrzejewski-Szmek
5ed6101f1b man: describe veritysetup command syntax
It makes it easier to diagnose what the generated units actually do.

(cherry picked from commit d53285d551)
(cherry picked from commit 3cd5be0e2952548aea9b1cda7985e5bc1b65f4e2)
(cherry picked from commit 4c3ebc38473c0a7f13fff8cbeae9b417ec029c1d)
(cherry picked from commit bc48d3cf6343810177821c189c33bbcc48a52b07)
2021-08-06 13:09:19 +02:00
ratijas
b69727daa3 man: Fix incorrect EFI vendor UUID (last missing nibble)
(cherry picked from commit d2e84b6018)
(cherry picked from commit 595d9965bb07c1f96e159d5be31504972c9d0754)
(cherry picked from commit aac6524cfdbd37878d2bad85f1c1b01a4ab04c64)
(cherry picked from commit 151c217ef207df1455c6b36e234356ec9767fc5c)
2021-08-06 13:07:54 +02:00
Lennart Poettering
b04462a747 udevadm: fix --tag-match help + description
(cherry picked from commit d27e6aee50)
(cherry picked from commit 98af14bf53)
(cherry picked from commit e8e2c93ed9)
2021-07-20 18:09:54 +02:00
ei-ke
8fa9e11e55 Fixed a typo
(cherry picked from commit 410477a78f)
(cherry picked from commit d6f6f9e578)
(cherry picked from commit 1c6da0da3f)
2021-07-20 18:03:28 +02:00
Zbigniew Jędrzejewski-Szmek
b36a5ba093 meson: call find_program() once and reuse the variable everywhere
Meson 0.58 has gotten quite bad with emitting a message every time
a quoted command is used:
Program /home/zbyszek/src/systemd-work/tools/meson-make-symlink.sh found: YES (/home/zbyszek/src/systemd-work/tools/meson-make-symlink.sh)
Program sh found: YES (/usr/bin/sh)
Program sh found: YES (/usr/bin/sh)
Program sh found: YES (/usr/bin/sh)
Program sh found: YES (/usr/bin/sh)
Program sh found: YES (/usr/bin/sh)
Program sh found: YES (/usr/bin/sh)
Program xsltproc found: YES (/usr/bin/xsltproc)
Configuring custom-entities.ent using configuration
Message: Skipping bootctl.1 because ENABLE_EFI is false
Program ln found: YES (/usr/bin/ln)
Program ln found: YES (/usr/bin/ln)
Program ln found: YES (/usr/bin/ln)
Program ln found: YES (/usr/bin/ln)
Program ln found: YES (/usr/bin/ln)
Program ln found: YES (/usr/bin/ln)
Message: Skipping journal-remote.conf.5 because HAVE_MICROHTTPD is false
Message: Skipping journal-upload.conf.5 because HAVE_MICROHTTPD is false
Program ln found: YES (/usr/bin/ln)
Program ln found: YES (/usr/bin/ln)
Message: Skipping loader.conf.5 because ENABLE_EFI is false
Program ln found: YES (/usr/bin/ln)
Program ln found: YES (/usr/bin/ln)
Program ln found: YES (/usr/bin/ln)
Program ln found: YES (/usr/bin/ln)
Program ln found: YES (/usr/bin/ln)
Program ln found: YES (/usr/bin/ln)
Program ln found: YES (/usr/bin/ln)
Program ln found: YES (/usr/bin/ln)
Program ln found: YES (/usr/bin/ln)
Program ln found: YES (/usr/bin/ln)
Program ln found: YES (/usr/bin/ln)
Program ln found: YES (/usr/bin/ln)
Program ln found: YES (/usr/bin/ln)
Program ln found: YES (/usr/bin/ln)
Program ln found: YES (/usr/bin/ln)
Program ln found: YES (/usr/bin/ln)
Program ln found: YES (/usr/bin/ln)
Program ln found: YES (/usr/bin/ln)
Program ln found: YES (/usr/bin/ln)
Program ln found: YES (/usr/bin/ln)
Program ln found: YES (/usr/bin/ln)
Program ln found: YES (/usr/bin/ln)
...

Let's suffer one message only for each command. Hopefully we can silence
even this when https://github.com/mesonbuild/meson/issues/8642 is
resolved.

(cherry picked from commit 596f5101f2)
(cherry picked from commit 271b7dcbad)
2021-05-15 20:32:07 +02:00
Lennart Poettering
fc162d07d0 pam: fix typo try_authtok → use_authtok
This was a copy/paste mistae apparently, there's not "try_authtok" and
this was supposed to copy what Fedora uses, which uses "use_authtok"
correctly. Hence adjust this.

Fixes: #19369
(cherry picked from commit 971c07fc68)
(cherry picked from commit ca276dcddc)
(cherry picked from commit dd4f87a8d1)
2021-05-15 20:28:42 +02:00
Lucas Magasweran
296fa036d3 man: network: use networkctl list instead of status to list network interface type
To determine the network interface type for use in the `Type=` directive, it is more concise to use the `list` command. Whereas, the `status` command requires an interface parameter.

For example, on a RaspberryPi 4 the following shows that the `wlan0` interface type `wlan` is more coveniently listed by the `list` command.

```
root@raspberrypi4-64:~# networkctl list
IDX LINK  TYPE     OPERATIONAL SETUP
  1 lo    loopback carrier     unmanaged
  2 eth0  ether    routable    configured
  3 wlan0 wlan     off         unmanaged

3 links listed.
```

Whereas the `networkctl status` command doesn't include this information.

```
root@raspberrypi4-64:~# networkctl status
●   State: routable
  Address: 192.168.1.141 on eth0
           fd8b:8779:b7a4::f43 on eth0
           fd8b:8779:b7a4:0:dea6:32ff:febe:d1ce on eth0
           fe80::dea6:32ff:febe:d1ce on eth0
  Gateway: 192.168.1.1 (CZ.NIC, z.s.p.o.) on eth0
      DNS: 192.168.1.1

May 07 14:17:18 raspberrypi4-64 systemd-networkd[212]: eth0: Gained carrier
May 07 14:17:19 raspberrypi4-64 systemd-networkd[212]: eth0: Gained IPv6LL
May 07 14:17:19 raspberrypi4-64 systemd-networkd[212]: eth0: DHCPv6 address fd8b:8779:b7a4::f43/128 timeout preferred -1 valid -1
May 07 14:17:21 raspberrypi4-64 systemd-networkd[212]: eth0: DHCPv4 address 192.168.1.141/24 via 192.168.1.1
```

To get the interface type using the `status` command you need to specify an additional argument.

```
root@raspberrypi4-64:~# networkctl status wlan0
● 3: wlan0
                     Link File: /lib/systemd/network/99-default.link
                  Network File: n/a
                          Type: wlan
                         State: off (unmanaged)
                          Path: platform-fe300000.mmcnr
                        Driver: brcmfmac
                    HW Address: dc:a6:32:be:d1:cf (Raspberry Pi Trading Ltd)
                           MTU: 1500 (min: 68, max: 1500)
                         QDisc: noop
  IPv6 Address Generation Mode: eui64
          Queue Length (Tx/Rx): 1/1
```

(cherry picked from commit 2480ca95ba)
(cherry picked from commit 56ba53b173)
(cherry picked from commit 45df8bbcac)
2021-05-15 20:28:32 +02:00
Jason Francis
b0a888d937 sd-login: fix wrong constructor used in sd_login_monitor manpage example
(cherry picked from commit 941c5275ea)
(cherry picked from commit 17cb088d6d)
(cherry picked from commit b52a4350de)
2021-05-15 20:25:21 +02:00
Zbigniew Jędrzejewski-Szmek
a6dd369b7f meson: do not fail if rsync is not installed with meson 0.57.2
https://github.com/mesonbuild/meson/issues/8641

Our CI started to fail. Even if the change is reverted in meson,
we need a quick workaround here.

(cherry picked from commit 7c5fd25119)
(cherry picked from commit f6435a07c1)
(cherry picked from commit f4a1812f95)
2021-05-15 20:24:06 +02:00
gaoyi
3aafd07d39 man: fix discriptions for --exec-delay
There are two ambiguity in the original description:
1. It will delay all RUN instructions, include builtin.
2. It will delay before running RUN, not each of RUN{program} instructions.

(cherry picked from commit 45f5efdea7)
(cherry picked from commit cb92f5601a)
(cherry picked from commit 58a56b6a14)
2021-05-15 20:23:47 +02:00
Zbigniew Jędrzejewski-Szmek
11dcff6efe man: fix quickhelp listing in tmpfiles.d(5)
Unlike many other small/big letter combos, this one has the recursive
version attached to the lowercase letter.

(cherry picked from commit 3dd61ee5be)
(cherry picked from commit ba8032c414)
(cherry picked from commit ebe12d8493)
2021-05-15 20:23:21 +02:00
Carlo Teubner
0aeab2639a docs: use current spelling "macOS" not "OS X" etc.
(cherry picked from commit 6d3831cee5)
(cherry picked from commit b819fff474)
(cherry picked from commit 5854761fc5)
2021-05-15 20:16:27 +02:00
Steve Bonds
4b12d4a973 Clarify that these values are in bytes
Similar to `ProcessSizeMax`. The defaults in percentages can be misunderstood to mean the values for these parameters will be in percentages.

(cherry picked from commit 88c2c8a0ba)
(cherry picked from commit a9ab73ca9f)
(cherry picked from commit b761e7e472)
2021-05-15 20:11:08 +02:00
syyhao1994
92cced7dda man: importd also provides the option of import-fs for machinectl (#19477)
(cherry picked from commit 96ae72ce1a)
(cherry picked from commit 59cde3bba1)
(cherry picked from commit 41e4a4f3df)
2021-05-15 20:10:53 +02:00
David Tardon
d44c3024b9 man: document differences in clean exit status for Type=oneshot
See commit 1f0958f640 .

(cherry picked from commit f055cf7786)
(cherry picked from commit c86f4f5f28)
2021-03-23 10:14:01 +01:00
Yu Watanabe
0af10ee899 man: DNS/NTP servers received from DHCP server are concatenated with the statically configured ones
Prompted by #9473.

(cherry picked from commit b63dae3168)
(cherry picked from commit 438777cc00)
2021-03-23 10:07:53 +01:00
Richard Laager
4a41de8169 Remove outdated disable_ipv6 docs
This was changed in commit 482efedc08,
which was released in v243, to only enable and never disable IPv6.

Signed-off-by: Richard Laager <rlaager@wiktel.com>
(cherry picked from commit f542f3b2ed)
(cherry picked from commit 807d6dd157)
2021-03-12 18:18:06 +01:00
Dmitry Borodaenko
c5c6dbf389 man/systemd-nspawn: document hashing machine name for uid base
Explicitly document the behavior introduced in #7437: when picking a new
UID shift base with "-U", a hash of the machine name will be tried
before falling back to fully random UID base candidates.

(cherry picked from commit 68709a636c)
(cherry picked from commit 4032a13588)
2021-02-02 17:32:24 +01:00
Luca BRUNO
00071dd6b9 man/localtime: document default timezone
This explicitly documents the default `UTC` timezone which is used
by systemd and (other softwares) when `/etc/localtime` is not present.

Ref: https://github.com/systemd/systemd/blob/v247/src/basic/time-util.c#L1460-L1469
(cherry picked from commit 3d909037e3)
(cherry picked from commit a580023f1d)
2021-02-02 17:31:47 +01:00
Florian Klink
0a3dd3db1f man/systemd.netdev: clarify the wireguard AllowedIPs= setting
`AllowedIPs=` only affects "routing inside the network interface
itself", as in, which wireguard peer packets with a specific destination
address are sent to, and what source addresses are accepted from which
peer.

To cause packets to be sent via wireguard in first place, a route via
that interface needs to be added - either in the `[Routes]` section on
the `.network` matching the wireguard interface, or outside of networkd.

This is a common cause of misunderstanding, because tools like wg-quick
also add routes to the interface. However, those tools are meant as a
"extremely simple script for easily bringing up a WireGuard interface,
suitable for a few common use cases (from their manpage).

Networkd also should support other usecases - like setting AllowedIPs to
0.0.0.0/0 and ::/0 and having a dynamic routing protocol setting more
specific routes (or the user manually setting them).

Reported-In: https://github.com/systemd/systemd/issues/14176
(cherry picked from commit c6b90e5c5e)
(cherry picked from commit 14475e0e79)
2021-02-02 17:31:44 +01:00
Jonathan G. Underwood
def3ea14df cryptsetup: add support for workqueue options
This commit adds support for disabling the read and write
workqueues with the new crypttab options no-read-workqueue
and no-write-workqueue. These correspond to the cryptsetup
options --perf-no_read_workqueue and --perf-no_write_workqueue
respectively.

(cherry picked from commit 227acf0009)
2020-12-30 15:24:12 +01:00
Yu Watanabe
e39f0fa5c3 network: honor M or O flag in RA even if IPv6AcceptRA.DHCPv6Cleint=always
Follow-up for ac24e418d9.

The original motivation of the commit and RFE #15339 is to start dhcpv6
client in managed mode when neither M nor O flag is set in the RA.
But, previously, if the setting is set to "always", then the DHCPv6
client is always started in managed mode even if O flag is set in the
RA. Such the behavior breaks RFC 7084.

(cherry picked from commit 0e686feaff)
2020-12-16 14:34:54 +01:00
Lennart Poettering
924bd7ec69 man: document that automount units are privileged
Fixes: #17886
(cherry picked from commit eef34a1d8f)
2020-12-10 17:39:17 +01:00
igo95862
faa88d9c39 man: Speicfy exact return values of sd_bus_message_enter_container
(cherry picked from commit 1edc1f1b62)
2020-12-08 18:08:31 +01:00
Yu Watanabe
89fae89234 man: slightly update the man page of sd_bus_message_read_basic()
Follow-up for 73a1d7d243.

(cherry picked from commit 7a1fe27f81)
2020-12-08 18:08:31 +01:00
igo95862
391de4434b man: Fixed an incomplete sentence
(cherry picked from commit 78c4f2f153)
2020-12-08 18:08:31 +01:00
igo95862
03429f6dab man: Specify that sd_bus_message_read_basic returns 0 if end of array had been reached.
(cherry picked from commit 73a1d7d243)
2020-12-08 18:08:31 +01:00
Pavel Sapezhko
298477a1c9 man: clarify DefaultTasksMax doc
(cherry picked from commit 77f5277a7a)
2020-12-08 18:08:31 +01:00
igo95862
85043d8caf man: Fix sd_bus_message_append_array_space function signature
(cherry picked from commit 0e577869f3)
2020-12-08 18:08:31 +01:00
Zbigniew Jędrzejewski-Szmek
5d89a32666 man: drop misplaced phrase
I think it was added in 6c2b9c8da1 as c&p.

(cherry picked from commit de70ff66dc)
2020-12-08 18:08:31 +01:00
igo95862
2f5c994dde man: Add a paragraph to sd_bus_call explaning callback message lifetime
(cherry picked from commit e6ce785d61)
2020-12-08 18:08:31 +01:00
Yu Watanabe
8992d8576b man: fix prototpe of sd_bus_message_peek_type()
Fixes #17609.

(cherry picked from commit 483abcc65b)
2020-12-08 18:08:31 +01:00
Yu Watanabe
e90844ca8a man: add missing <para> tag, and drop redundant ">"
Fixes #17609.

(cherry picked from commit e55c073161)
2020-12-08 18:08:31 +01:00
igo95862
e1ff0c8a5e man: Separated paragraph about making sd_bus object reply async
(cherry picked from commit 2e4238a6d1)
2020-12-08 18:08:31 +01:00
Yu Watanabe
821937ffc8 man: fix tag
(cherry picked from commit af7ce3faf8)
2020-12-08 18:08:31 +01:00
Yu Watanabe
cc1b93aef9 man: mention that sd_bus_call() may return a negative errno mapped from D-Bus error reply
Closes #17556.

(cherry picked from commit c660668ed9)
2020-12-08 18:08:31 +01:00
Yu Watanabe
0e233e5987 man: add missing period
(cherry picked from commit 23243adf69)
2020-12-08 18:08:31 +01:00
Yu Watanabe
6b9e8618e5 journal: refuse skip parameter for sd_journal_next_skip() larger than INT_MAX
Fixes #17502.

(cherry picked from commit 41d544a1c1)
2020-12-08 18:08:31 +01:00
Yu Watanabe
9f316bb61c network: make default router lifetime to 30min
Closes #17527.

(cherry picked from commit 71a5db49fd)
2020-12-08 18:08:31 +01:00
Lennart Poettering
e8c7f0e4c4 man: remove misplaced comma
(cherry picked from commit 8b2e362651)
2020-12-08 18:08:31 +01:00
Zbigniew Jędrzejewski-Szmek
59b8000e12 man: update fedora version
F33 was released today!

(cherry picked from commit d468c81e26)
2020-12-08 18:08:30 +01:00
Zbigniew Jędrzejewski-Szmek
afa88d5789 man/machinectl: fix pull-raw example
We do not allow machine names with "_", so the command would fail as written.
Share the example with the systemd-nspawn page instead.

(cherry picked from commit 5fadff3352)
2020-12-08 18:08:30 +01:00
Josh Brobst
23b682c4c4 man: correct xdg-autostart-generator path
(cherry picked from commit c690bd0bc6)
2020-12-08 18:08:30 +01:00
Zbigniew Jędrzejewski-Szmek
9833a8b6bb man: document what variables are allowed
(cherry picked from commit 0dc9fd56a5)
2020-12-08 18:08:30 +01:00
Zbigniew Jędrzejewski-Szmek
d58943a7d2 man: add example of negative trust anchor file
Fixes #17226.

(cherry picked from commit 2c91906e25)
2020-12-08 18:08:30 +01:00
Zbigniew Jędrzejewski-Szmek
1ddbb871fd man: document differences between nss-resolve and nss-dns
https://bugzilla.redhat.com/show_bug.cgi?id=1889012
https://serverfault.com/questions/626612/dns-just-started-resolving-my-server-prod-addresses-to-127-0-53-53
https://serverfault.com/questions/649352/what-are-the-security-implications-of-the-allow-dns-suffix-appending-to-unquali
(cherry picked from commit bace688394)
2020-12-08 18:08:30 +01:00
Zbigniew Jędrzejewski-Szmek
b8ded5cfd6 man/org.freedesktop.resolve1: briefly document a bunch of methods and properties
Fixes #13799.

(cherry picked from commit 2ce493672c)
2020-12-08 18:08:30 +01:00
Zbigniew Jędrzejewski-Szmek
54c0981634 man/systemd-resolved: reword the description of query a bit
The phrase "routing domains" is used to mean both route-only domains and search
domains. Route-only domains are always called like that, and not just "route domains".

Some paragraphs are reordered to describe synthetisized records first, then
LLMNR, then various ways quries are routed.

Fixes #8928, hopefully.

(cherry picked from commit 9e1804b24c)
2020-12-08 18:08:30 +01:00
Zbigniew Jędrzejewski-Szmek
cb3a8e48f0 sd-bus: add custom return code when $XDG_RUNTIME_DIR is not set
We would return ENOENT, which is extremely confusing. Strace is not helpful because
no *file* is actually missing. So let's add some logs at debug level and also use
a custom return code. Let all user-facing utilities print a custom error message
in that case.

(cherry picked from commit ab4a88eb92)
2020-12-08 18:08:30 +01:00
Lennart Poettering
8dd1499212 man: document that for Type=dbus services dropping bus name has consequences
Fixes: #17150
(cherry picked from commit bb63863304)
2020-12-08 18:08:30 +01:00