Zbigniew Jędrzejewski-Szmek
f2ec239c2b
Revert "generate-dns_type-gperf: modernize python syntax"
...
This reverts commit b0a336a669 .
Fixes #18708 .
2021-02-22 22:43:14 +01:00
Zbigniew Jędrzejewski-Szmek
1f9441a72b
Stop using f-strings in generate-sym-test.py
...
This partially reverts 7857b6e838 .
Debian 9 has python3.5 which does not have f-strings yet.
Partially fixes #18708 .
2021-02-22 22:43:00 +01:00
Zbigniew Jędrzejewski-Szmek
85c8eac822
docs: align tables vertically to top
...
Fixes #18706 .
2021-02-22 22:29:34 +01:00
Frantisek Sumsal
1a7c5ec4b2
Translated using Weblate (Slovak)
...
Currently translated at 24.8% (47 of 189 strings)
Co-authored-by: Frantisek Sumsal <frantisek@sumsal.cz >
Translate-URL: https://translate.fedoraproject.org/projects/systemd/master/sk/
Translation: systemd/main
2021-02-22 21:26:57 +01:00
Yu Watanabe
c83e44110c
Merge pull request #18718 from yuwata/network-nexthop-blackhole
...
network: introduce Blackhole= setting in [NextHop] section
2021-02-23 04:44:12 +09:00
Yu Watanabe
e82a0ef1cf
Merge pull request #18734 from poettering/cryptsetup-description-escape
...
cryptsetup: unescape ID_PART_ENTRY_NAME udev field
2021-02-23 04:43:22 +09:00
Luca Boccassi
79e20ceb59
MountImages: fix exec_context_dump printf
...
Use strempty as options might not be set, and add the separator
for each option tuple
2021-02-23 04:42:39 +09:00
Yu Watanabe
518339d89f
Merge pull request #18731 from yuwata/backlight-trivial-cleanups
...
backlight: trivial cleanups
2021-02-23 04:42:09 +09:00
Zbigniew Jędrzejewski-Szmek
e6c31188dc
Merge pull request #18735 from poettering/some-doc-fixes
...
three documentation fixes
2021-02-22 19:45:01 +01:00
Yu Watanabe
69a91c704e
test-network: add tests for Blackhole= setting in [NextHop] section
2021-02-23 02:21:35 +09:00
Yu Watanabe
484555f3f2
network: route: shorten code a bit
2021-02-23 02:21:31 +09:00
Yu Watanabe
30f1083709
network: nexthop: add Blackhole= setting in [NextHop] section
...
As similar to unreachable type routes, blackhole nexthops do not have
NHA_OID attribute, so they are managed by Manager.
2021-02-23 02:21:17 +09:00
Lennart Poettering
0a6aa7a238
man: try to improve documentation of conditions/asserts
...
Fixes : #18725
2021-02-22 18:12:34 +01:00
Lennart Poettering
f553b772e9
docs: , → .
2021-02-22 18:00:14 +01:00
Lennart Poettering
c6e33c293e
man: correct documentaiton of StandardInput='s defaults in regards to "data"
...
Fixes : #18710
2021-02-22 17:52:20 +01:00
Lennart Poettering
fadd34dd5a
cryptsetup: unescape ID_PART_ENTRY_NAME udev property before using it
...
Fixes : #18729
2021-02-22 17:39:50 +01:00
Lennart Poettering
930aa88f04
tree-wide: use sd_device_new_from_stat_rdev() whereever appropriate
2021-02-22 17:38:57 +01:00
Yu Watanabe
b77c929934
backlight: reindent comments
2021-02-22 23:45:55 +09:00
Yu Watanabe
d17d66f0ab
backlight: reduce indentation a bit
2021-02-22 23:25:00 +09:00
Zbigniew Jędrzejewski-Szmek
5735ab0979
fuzz-systemctl-parse-argv: add "telinit" to the argv[0] list
2021-02-22 14:22:07 +00:00
Yu Watanabe
ba6c9b7994
backlight: same_device() may return negative errno
2021-02-22 23:11:28 +09:00
Yu Watanabe
7a9737bc7d
backlight: exit earlier when unknown verb is specified
2021-02-22 23:00:46 +09:00
Yu Watanabe
84d32bf59b
test-network: test wireguard peer in drop-in config
...
Closes #18241 .
2021-02-22 21:33:36 +09:00
Zbigniew Jędrzejewski-Szmek
b332778b30
Merge pull request #18684 from yuwata/sd-device-cleanups-and-udevadm-fix
...
sd-device, udev: several cleanups and one udevadm fix
2021-02-22 11:32:38 +01:00
clayton craft
f026e496ed
Add DPI info for Kensington Trackball Expert Mouse in hwdb ( #18709 )
...
The DPI value is from the manufacturer documentation, and freq measured
from mouse-dpi-tool
2021-02-22 15:17:53 +09:00
wouter bolsterlee
a1f782e44c
Update docs about fdisk/gdisk support for discoverable partitions
...
This updates the docs about using fdisk/gdisk to make partitions with the right
partition type UUID as defined in the discoverable partitions spec.
Improve wording/grammar/formatting, and reflect that gdisk supports this as
well nowadays; see https://www.rodsbooks.com/gdisk/revisions.html
2021-02-21 19:40:14 +00:00
Benjamin Robin
086c9fbc03
man: Small fix of sd_bus_message_send() man page
2021-02-21 20:26:51 +01:00
Tyler Hicks
e4d54220a1
man: correct the unit file directory for attached images
...
Commit 83f72cd65f ("man,docs: document the new unit file directory for
attached images") updated the docs and man page with the new unit file
directory for attached images but included a system.attached ->
systemd.attached typo in the man page portion of the change. Fix the
typo to document the correct path.
2021-02-21 19:19:18 +00:00
Yu Watanabe
5e63f2915b
man: fix typo
2021-02-21 19:20:47 +01:00
Yu Watanabe
a9f2f1c13a
Merge pull request #18711 from yuwata/network-nexthop-onlink
...
network: nexthop: add OnLink= setting
2021-02-21 10:33:36 +09:00
Yu Watanabe
e2d9bc5cfd
test-network: add a test for OnLink= in [NextHop] section
2021-02-21 05:16:27 +09:00
Yu Watanabe
2ddd52d1e2
network: nexthop: add OnLink= setting
2021-02-21 05:16:23 +09:00
Yu Watanabe
1f22fc3828
mount-tool: sd_device_get_sysattr_value() returns 0 on success
2021-02-21 04:40:23 +09:00
Yu Watanabe
9520c2f62b
sd-device-enumerator: shorten code a bit
2021-02-21 04:40:23 +09:00
Yu Watanabe
3f15ce66e0
unit: ignore exit code of "udevadm trigger"
...
Suggested at https://github.com/systemd/systemd/pull/18559#issuecomment-781626226 .
Some drivers may be broken and return unexpected errors on triggering
events. That should be logged but should not boot-up to be affected.
2021-02-21 04:40:23 +09:00
Yu Watanabe
6c99c26500
udevadm-trigger: introduce --quiet option
...
This may be useful to invoke the command by non-privileged users.
2021-02-21 04:40:23 +09:00
Yu Watanabe
0e789e6d48
udevadm-trigger: do not return immediately on EACCES
...
Prompted by https://github.com/systemd/systemd/pull/18559 .
2021-02-21 04:40:23 +09:00
Yu Watanabe
21012e20a4
udevadm-trigger: use sd_device_trigger() for triggering uevent
2021-02-21 04:40:23 +09:00
Yu Watanabe
25677a055c
udev: use sd_device_trigger() to trigger uevent
2021-02-21 04:40:23 +09:00
Yu Watanabe
f4d36efa75
sd-device: introduce tiny wrapper sd_device_trigger()
2021-02-21 04:40:23 +09:00
Yu Watanabe
297d1370f8
sd-device: do not cache action string for uevent file written by sd_device_set_sysattr_value()
...
As sd_device_get_sysattr_value() may be already used to read uevent
file. The read value of uevent file may be usually quite different
from the action string.
2021-02-21 04:40:23 +09:00
Yu Watanabe
1dff135bf9
test: add more tests for path_startswith()
2021-02-21 04:40:23 +09:00
Yu Watanabe
9dcde1034c
sd-device: make devpath check stricter
...
See assertion in sd_device_get_devpath().
2021-02-21 04:40:23 +09:00
Yu Watanabe
45e093a968
sd-device: make sd_device_get_xxx() accept NULL for storing result
...
Though, setting NULL for some getters, e.g. sd_device_get_syspath()
may be meaningless, but anyway also let's make them accept NULL for
consistency.
2021-02-21 04:40:23 +09:00
Yu Watanabe
163e0a882c
sd-device: use appropriate error code
2021-02-21 04:40:23 +09:00
Yu Watanabe
66efcbb149
sd-device: add a brief comment in device_cache_sysattr_value()
2021-02-21 04:40:23 +09:00
Yu Watanabe
acfc2a1d15
sd-device: ignore error in device_cache_sysattr_value() and propagate original error code
...
There are three calls of device_cache_sysattr_value(). Two of them are
just caching the value. Hence, let's ignore its failure, and propagate
original error code.
One exception is the last call in sd_device_get_sysattr_value().
Unfortunately, it returns `const char *` instead of `char *`. So,
sd_device object must have the reference of the returned value.
Hence, error in updating the cache by device_cache_sysattr_value()
is critical, and we need to propagate the error in that case.
2021-02-21 04:40:17 +09:00
Yu Watanabe
32a739afe0
sd-device: the last argument of sd_device_get_sysattr_value() may be NULL
2021-02-21 04:30:42 +09:00
Yu Watanabe
2a394d0bf2
sd-device: use delete_trailing_chars()
...
Also, this drops trailing '\r' from sysattr value set in
sd_device_set_sysattr_value().
2021-02-21 04:30:42 +09:00
Yu Watanabe
23ff570ba8
sd-device: do not cache an empty string but clear cache on failre
...
And propagate the original error on write.
Note that some attributes are read-only.
2021-02-21 04:30:42 +09:00