Luca Boccassi [Mon, 31 Oct 2022 18:57:04 +0000 (18:57 +0000)]
Disable code freeze banner
Luca Boccassi [Mon, 31 Oct 2022 18:50:31 +0000 (19:50 +0100)]
Merge pull request #25202 from poettering/measure-phase-fix
measure: honour phases when signing
Luca Boccassi [Mon, 31 Oct 2022 15:53:10 +0000 (16:53 +0100)]
Merge pull request #25200 from bluca/news
Update NEWS, hwdb
Lennart Poettering [Mon, 31 Oct 2022 15:50:20 +0000 (16:50 +0100)]
measure: honour phases when signing
Lennart Poettering [Mon, 31 Oct 2022 15:50:13 +0000 (16:50 +0100)]
measure: banks and phases list are always non-empty
When parsing parameters, we populate these lists with defaults when
empty, hence we can rely that there's at least one bank and one phase
defined.
Lennart Poettering [Mon, 31 Oct 2022 11:22:37 +0000 (12:22 +0100)]
resolved: fix copypasta in resolved varlink API
As reported by @holtmann
Luca Boccassi [Mon, 31 Oct 2022 11:20:13 +0000 (11:20 +0000)]
Update hwdb
ninja -C build update-hwdb
Luca Boccassi [Mon, 31 Oct 2022 12:15:02 +0000 (12:15 +0000)]
Update NEWS with latest changes
Luca Boccassi [Mon, 31 Oct 2022 11:13:21 +0000 (11:13 +0000)]
NEWS: update contributors list
Luca Boccassi [Mon, 31 Oct 2022 11:54:24 +0000 (12:54 +0100)]
Merge pull request #25197 from weblate/weblate-systemd-master
Translations update from Fedora Weblate
Charles Lee [Mon, 31 Oct 2022 11:19:54 +0000 (12:19 +0100)]
po: Translated using Weblate (Chinese (Simplified) (zh_CN))
Currently translated at 100.0% (193 of 193 strings)
Co-authored-by: Charles Lee <lchopn@gmail.com>
Translate-URL: https://translate.fedoraproject.org/projects/systemd/master/zh_CN/
Translation: systemd/main
Gogo Gogsi [Mon, 31 Oct 2022 11:19:54 +0000 (12:19 +0100)]
po: Translated using Weblate (Croatian)
Currently translated at 100.0% (193 of 193 strings)
Co-authored-by: Gogo Gogsi <linux.hr@protonmail.com>
Translate-URL: https://translate.fedoraproject.org/projects/systemd/master/hr/
Translation: systemd/main
Lennart Poettering [Mon, 31 Oct 2022 11:13:26 +0000 (12:13 +0100)]
man: make clear NNP has no effect on processes invoked through systemd-run/at/crontab and such things
Lennart Poettering [Mon, 31 Oct 2022 11:13:15 +0000 (12:13 +0100)]
update TODO
Jan Janssen [Mon, 31 Oct 2022 08:52:56 +0000 (09:52 +0100)]
NEWS: Clarify overlapping UKI PE section offsets
Yu Watanabe [Mon, 31 Oct 2022 06:03:44 +0000 (15:03 +0900)]
Merge pull request #25193 from takaswie/topic/udev/builtin/hwdb/ieee1394/support-legacy-layout-of-configuration-rom
hwdb: ieee1394-unit-function: arrangement for legacy device
Takashi Sakamoto [Mon, 31 Oct 2022 03:48:31 +0000 (12:48 +0900)]
hwdb: ieee1394-unit-function: add comment about legacy AV/C devices
It appears that exceptional layout of legacy device requires extra care of
hwdb entry for node device since Linux FireWire subsystem do not pick up
numeric model identifier in vendor directory. In detail, see:
* https://github.com/systemd/systemd/issues/25029
In the case, udev rule without model attribute is used. Thus hwdb entry
for generic AV/C device should match both cases with and without the
attribute. The wildcard added by a commit
5e577da5f824 ("hwdb: drop model
specifier from general entries") satisfies this condition,
This commit adds comment about it.
Takashi Sakamoto [Mon, 31 Oct 2022 03:48:31 +0000 (12:48 +0900)]
hwdb: ieee1394-unit-function: fullfill for Sony DCR-TRV310
It appeared that Sony DCR-TRV310 has legacy layout of configuration ROM
against 1394 TA standard documentation.
* https://github.com/systemd/systemd/issues/25029
For the case, numeric model identifier and descriptor leaf for model name
are not picked up. This commit fulfill corresponding entry so that
applications can use model name from hardware database.
Yu Watanabe [Mon, 31 Oct 2022 01:39:11 +0000 (10:39 +0900)]
Merge pull request #25190 from mrc0mmand/reenable-test_macsec
test-network: re-enable test_macsec
Frantisek Sumsal [Sun, 30 Oct 2022 19:47:04 +0000 (20:47 +0100)]
test-network: suppress a couple of minor pylint complaints
Frantisek Sumsal [Sun, 30 Oct 2022 19:44:53 +0000 (20:44 +0100)]
test-network: sort standard imports before "third-party" ones
Frantisek Sumsal [Sun, 30 Oct 2022 19:43:35 +0000 (20:43 +0100)]
test-network: drop a couple of useless f-strings
Frantisek Sumsal [Sun, 30 Oct 2022 19:40:05 +0000 (20:40 +0100)]
test-network: use raw strings where appropriate
Frantisek Sumsal [Sun, 30 Oct 2022 19:27:55 +0000 (20:27 +0100)]
test-network: re-enable test_macsec
The outstanding kernel panic should be already fixed in recent enough
kernels by [0]. To make the test safe to run anywhere, let's implement
a simple kernel version check and run the test only if we're running
with at least kernel 6.x. The patch might be in some 5.x kernels as
well, but let's be on the safe side and use 6.x as a baseline here
(which is currently the case for Arch and Fedora Rawhide anyway).
[0] https://lore.kernel.org/netdev/
7b3fd03e1a46047e5ffe2a389fe74501f0a93206.
1656519221.git.sd@queasysnail.net/T/#u
Jan Janssen [Sun, 30 Oct 2022 08:28:44 +0000 (09:28 +0100)]
boot: Mark some functions as static
Yu Watanabe [Sun, 30 Oct 2022 00:43:05 +0000 (09:43 +0900)]
udev: always create device symlinks for USB disks
Previously, ata_id might not be able to retrieve attributes correctly,
and properties from usb_id were used as a fallback. See issue #24921
and PR #24923. To keep backward compatibility, still we need to create
symlinks based on USB serial.
Fixes #25179.
Yu Watanabe [Sat, 29 Oct 2022 21:59:31 +0000 (06:59 +0900)]
udev: fix for parsing MAC address
Fixes a bug introduced by
5bbcfbaa11a92732f9bbc8d5f77e9311e6ac3d56.
Fixes #25181.
Yu Watanabe [Sun, 30 Oct 2022 02:59:10 +0000 (11:59 +0900)]
test: support non-summer time
Follow-up for
759ed0a2533da8840dea315d07f92e6bb0272cdd.
Steve Ramage [Sat, 29 Oct 2022 21:07:21 +0000 (14:07 -0700)]
man: Add documentation for AssertCredential= (#25178)
Fixes #25177.
Co-authored-by: Steve Ramage <gitcommits@sjrx.net>
Jochen Sprickerhof [Sat, 29 Oct 2022 05:02:37 +0000 (07:02 +0200)]
Remove duplicated word
David Seifert [Fri, 28 Oct 2022 21:55:07 +0000 (23:55 +0200)]
test: remove brittle iszero_safe() test
The test relies on finite -> infinite conversion happening
when increasing DBL_MAX.
Fixes #25044.
Nick Rosbrook [Fri, 28 Oct 2022 15:01:15 +0000 (11:01 -0400)]
man: document reboot --poweroff exception
When reboot is invoked, the -p/--poweroff option is intentionally
ignored. Update the man page to reflect this exception.
Luca Boccassi [Fri, 28 Oct 2022 17:08:58 +0000 (18:08 +0100)]
tmpfiles: downgrade missing creds/source path log to debug
When installing systemd 252 in debian:
Setting up systemd (252~rc3-2) ...
Installing new version of config file /etc/systemd/logind.conf ...
Installing new version of config file /etc/systemd/system.conf ...
Installing new version of config file /etc/systemd/user.conf ...
/usr/lib/tmpfiles.d/provision.conf:13: Credential 'login.motd' not specified, skipping line.
/usr/lib/tmpfiles.d/provision.conf:14: Credential 'login.issue' not specified, skipping line.
/usr/lib/tmpfiles.d/provision.conf:17: Credential 'network.hosts' not specified, skipping line.
/usr/lib/tmpfiles.d/provision.conf:22: Credential 'ssh.authorized_keys.root' not specified, skipping line.
/usr/lib/tmpfiles.d/systemd.conf:43: Copy source path '/.extra/tpm2-pcr-signature.json' does not exist, skipping line.
/usr/lib/tmpfiles.d/systemd.conf:44: Copy source path '/.extra/tpm2-pcr-public-key.pem' does not exist, skipping line.
Downgrade to debug level
Yu Watanabe [Tue, 25 Oct 2022 15:12:14 +0000 (00:12 +0900)]
install: process all Wants= symlinks even if some of them fail
Follow-up for
94e7298d309fef7710174def820e9d38e512a086.
Fixes CID#
1499992.
Yu Watanabe [Thu, 27 Oct 2022 19:48:31 +0000 (04:48 +0900)]
test-network: rewrite wait-online address family tests
Fixes #25154.
Luca Boccassi [Fri, 28 Oct 2022 09:23:26 +0000 (11:23 +0200)]
Merge pull request #25164 from yuwata/network-route-table-0
network: fix handling of route table 0
Yu Watanabe [Fri, 28 Oct 2022 05:44:35 +0000 (14:44 +0900)]
network: drop duplicated period in log message
Yu Watanabe [Fri, 28 Oct 2022 02:28:10 +0000 (11:28 +0900)]
test-network: show only IPv4 routes
Yu Watanabe [Fri, 28 Oct 2022 02:06:27 +0000 (11:06 +0900)]
network: make RouteTable= also accept route table name
Yu Watanabe [Fri, 28 Oct 2022 02:33:19 +0000 (11:33 +0900)]
network: allow 0 for table number
Fixes #25089.
Yu Watanabe [Fri, 28 Oct 2022 02:03:52 +0000 (11:03 +0900)]
network: Table= also accepts table name
Yu Watanabe [Thu, 27 Oct 2022 23:27:39 +0000 (08:27 +0900)]
Merge pull request #25163 from weblate/weblate-systemd-master
Translations update from Fedora Weblate
Anders Jonsson [Thu, 27 Oct 2022 23:19:46 +0000 (01:19 +0200)]
po: Translated using Weblate (Swedish)
Currently translated at 100.0% (193 of 193 strings)
Co-authored-by: Anders Jonsson <anders.jonsson@norsjovallen.se>
Translate-URL: https://translate.fedoraproject.org/projects/systemd/master/sv/
Translation: systemd/main
Olga Smirnova [Thu, 27 Oct 2022 23:19:46 +0000 (01:19 +0200)]
po: Translated using Weblate (Russian)
Currently translated at 100.0% (193 of 193 strings)
Co-authored-by: Olga Smirnova <mistresssilvara@hotmail.com>
Translate-URL: https://translate.fedoraproject.org/projects/systemd/master/ru/
Translation: systemd/main
Yu Watanabe [Thu, 27 Oct 2022 00:54:06 +0000 (09:54 +0900)]
wait-online: ignore -ENODATA from sd_network_link_get_required_for_online()
Follow-up for
778e3da95ef16302956087e6f10ccf7d42499aec.
These settings are saved only when a .network file is assigned to the
interface. Let's silence noisy logs for unmanaged interfaces.
Zbigniew Jędrzejewski-Szmek [Thu, 27 Oct 2022 05:31:56 +0000 (07:31 +0200)]
Merge pull request #25146 from keszybz/relicese-to-mit-0
Change license of code examples in docs to MIT-0
Zbigniew Jędrzejewski-Szmek [Thu, 27 Oct 2022 05:28:22 +0000 (07:28 +0200)]
Merge pull request #25137 from yuwata/sd-device-drop-device-copy-properties
sd-device: drop unused device_copy_properties()
Lennart Poettering [Wed, 26 Oct 2022 09:09:04 +0000 (11:09 +0200)]
update TODO
Yu Watanabe [Wed, 26 Oct 2022 05:00:47 +0000 (14:00 +0900)]
unit: also prioritize input devices when triggering devices
As in most cases, tty device without input devices is meaningless.
This also swaps the priority of tty and net:
- input devices are often connected under USB bus, hence may take
slightly much time to be initialized. As, described in the above,
in most cases it is allowed that tty devices are initialized just
before input devices,
- network configuration usually requires much time, e.g. DHCP or RA,
hence it is better that network interfaces initialized. Then,
network services can start DHCP client or friends earlier.
Fixes #24026.
Zbigniew Jędrzejewski-Szmek [Wed, 26 Oct 2022 06:34:13 +0000 (08:34 +0200)]
network: change license of examples to MIT-0
Arguably, CC0 is just fine for examples since they are not code. But it's
easier to be consistent and just use MIT-0 for all "documentation". Thus,
the license is changed similarly code examples under man/.
Based on 'git shortlog -ns network/*' and 'git log -p', the following folks
should ack this:
Zbigniew Jędrzejewski-Szmek
Lennart Poettering
Tom Gundersen
Yu Watanabe
Daan De Meyer
Marc-André Lureau
Zbigniew Jędrzejewski-Szmek [Wed, 26 Oct 2022 06:26:45 +0000 (08:26 +0200)]
systemd-sysv-install: change license to MIT-0
See parent commit for explanation.
git blame shows Martin Pitt is the author of the code.
(I was considering whether we should instead drop this file, but it's still
useful for *distributions*. Eveen if we discourage people from using sysv
scripts, distributions will have to deal with them for a while yet.)
Zbigniew Jędrzejewski-Szmek [Wed, 26 Oct 2022 06:02:14 +0000 (08:02 +0200)]
man: change license of examples to MIT-0
Quoting Richard Fontana in [1]:
CC0 has been listed by Fedora as a 'good' license for code and content
(corresponding to allowed and allowed-content under the new system). We plan
to classify CC0 as allowed-content only, so that CC0 would no longer be
allowed for code.
Over a long period of time a consensus has been building in FOSS that
licenses that preclude any form of patent licensing or patent forbearance
cannot be considered FOSS. CC0 has a clause that says: "No trademark or
patent rights held by Affirmer are waived, abandoned, surrendered, licensed
or otherwise affected by this document." (The trademark side of that clause
is nonproblematic from a FOSS licensing norms standpoint.) The regular
Creative Commons licenses have similar clauses.
For the case of our documentation snippets, patent issues do not matter much.
But it is always nicer to have a license that is considerred acceptable without
any further considerations. So let's change the license to the (now recommended
replacement) MIT-0.
[1] https://lists.fedoraproject.org/archives/list/devel@lists.fedoraproject.org/message/NO7KGDNL5GX3KCB7T3XTGFA3QPSUJA6R/
Using 'git blame -b' and 'git log -p --follow', I identified the following
folks as having made non-trivial changes to those snippets:
Lennart Poettering
Tom Gundersen
Luca Bocassi
Zbigniew Jędrzejewski-Szmek
Thomas Mühlbacher
Daan De Meyer
I'll ask for confirmation in the pull request.
Zbigniew Jędrzejewski-Szmek [Wed, 26 Oct 2022 06:18:23 +0000 (08:18 +0200)]
licenses: add a copy of MIT-0
Taken from https://spdx.org/licenses/MIT-0.html.
Zbigniew Jędrzejewski-Szmek [Wed, 26 Oct 2022 05:43:48 +0000 (07:43 +0200)]
Merge pull request #25120 from bluca/test_machineid
unit tests: do not fail when machine-id is missing
Yu Watanabe [Tue, 25 Oct 2022 19:00:10 +0000 (04:00 +0900)]
hwdb: drop model specifier from general entries
Fixes #25029.
Temuri Doghonadze [Tue, 25 Oct 2022 22:19:35 +0000 (00:19 +0200)]
po: Translated using Weblate (Georgian)
Currently translated at 100.0% (193 of 193 strings)
Co-authored-by: Temuri Doghonadze <temuri.doghonadze@gmail.com>
Translate-URL: https://translate.fedoraproject.org/projects/systemd/master/ka/
Translation: systemd/main
Yu Watanabe [Tue, 25 Oct 2022 20:12:54 +0000 (05:12 +0900)]
sd-device: make device_shallow_clone() static
Yu Watanabe [Tue, 25 Oct 2022 20:05:30 +0000 (05:05 +0900)]
sd-device: drop unused device_copy_properties()
Yu Watanabe [Tue, 25 Oct 2022 18:37:44 +0000 (03:37 +0900)]
Merge pull request #25133 from poettering/ddi-dissect
mention "DDIs" in systemd-dissect tool --help text/man page
Yu Watanabe [Tue, 25 Oct 2022 18:24:45 +0000 (03:24 +0900)]
tree-wide: fix typo
Yu Watanabe [Tue, 25 Oct 2022 18:17:17 +0000 (03:17 +0900)]
Merge pull request #25131 from poettering/image-root-help-text-fix
analyze/coredumpctl: add --image=/--root= to --help texts
Lennart Poettering [Tue, 25 Oct 2022 16:59:10 +0000 (18:59 +0200)]
man: also use DDIs in systemd-dissect man page
Lennart Poettering [Tue, 25 Oct 2022 13:42:21 +0000 (15:42 +0200)]
dissect: mention DDI moniker in --help text
xiaoyang [Tue, 25 Oct 2022 16:49:07 +0000 (00:49 +0800)]
Revert "core: drop non-default value for DefaultLimitMEMLOCK=" (#25058)
This reverts commit
606104bcdbf9d2fe1f39594cc6379db9209569d9.
Yu Watanabe [Mon, 24 Oct 2022 17:58:39 +0000 (02:58 +0900)]
test: rewrite tests for renaming network interface
- use `udevadm wait` instead of `udevadm info --wait-initialized`,
- use `timeout` command instead of the fixed time sleep,
- add basic tests for #25106,
- add brief comment about #25115.
Jacek Migacz [Sun, 18 Sep 2022 13:41:38 +0000 (15:41 +0200)]
core: give a nicer error message on invalid aliases
Lennart Poettering [Tue, 25 Oct 2022 13:41:22 +0000 (15:41 +0200)]
coredumpctl: add --root= + --image= to --help text
Lennart Poettering [Tue, 25 Oct 2022 13:39:14 +0000 (15:39 +0200)]
analyze: add --image= + --root= to --help text
Lennart Poettering [Thu, 20 Oct 2022 21:07:47 +0000 (23:07 +0200)]
update TODO
Luca Boccassi [Tue, 25 Oct 2022 00:17:09 +0000 (01:17 +0100)]
gh actions: run a unit test iteration without machine-id
Luca Boccassi [Tue, 25 Oct 2022 14:10:05 +0000 (15:10 +0100)]
udev-test: use passwd instead of machine-id for checks
Much more likely to be present
Luca Boccassi [Tue, 25 Oct 2022 14:02:10 +0000 (15:02 +0100)]
test/test-systemd-tmpfiles.py: do not fail if machine-id is missing
When building in a chroot there might not be any machine-id
Luca Boccassi [Tue, 25 Oct 2022 13:41:54 +0000 (14:41 +0100)]
test-load-fragment: do not fail if machine-id is missing
When building in a chroot there might not be any machine-id
Luca Boccassi [Tue, 25 Oct 2022 13:38:22 +0000 (14:38 +0100)]
test-execute: do not fail if machine-id is missing
When building in a chroot there might not be any machine-id
Luca Boccassi [Tue, 25 Oct 2022 00:38:32 +0000 (01:38 +0100)]
test-unit-name: do not fail if machine-id is missing
When building in a chroot there might not be any machine-id
Luca Boccassi [Tue, 25 Oct 2022 00:12:46 +0000 (01:12 +0100)]
test-specifier: do not fail if machine-id is missing
When building in a chroot there might not be any machine-id
Luca Boccassi [Tue, 25 Oct 2022 00:05:04 +0000 (01:05 +0100)]
test-id128: do not fail if machine-id is missing
When building in a chroot there might not be any machine-id
Luca Boccassi [Mon, 24 Oct 2022 23:59:47 +0000 (00:59 +0100)]
test-fs-util: do not fail if machine-id is missing
When building in a chroot there might not be any machine-id
Luca Boccassi [Mon, 24 Oct 2022 23:56:44 +0000 (00:56 +0100)]
test-condition: skip test if machine-id is missing
When building in a chroot there might not be any machine-id
Luca Boccassi [Mon, 24 Oct 2022 23:50:05 +0000 (00:50 +0100)]
test-sd-device: check if /run/udev/ exists
When running the tests in a chroot /sys/ might be writable, but it
doesn't mean udev will be running
Assertion 'sd_event_add_inotify(event, NULL, "/run/udev" , IN_DELETE, on_inotify, NULL) >= 0' failed at src/libsystemd/sd-device/test-sd-device.c:352, function test_sd_device_enumerator_filter_subsystem(). Aborting.
Daan De Meyer [Tue, 25 Oct 2022 11:44:32 +0000 (13:44 +0200)]
man: Mention that journal file size is capped to 4G in compact mode
Zbigniew Jędrzejewski-Szmek [Tue, 25 Oct 2022 07:53:49 +0000 (09:53 +0200)]
Report version string as in the Boot Loader Spec, fix boot loader upgrades
We generate a "version string" that is reported by various tools. This patch
changes this version string to use the characters specified for the version
string in the Boot Loader Specification. We start using the special characters
we have in the spec for this exact purpose and thus fix version comparisons.
We also stop using '+' which is not part of the allowed charset and is used for
boot attempt counting and should not be part of the version string.
The version string is (among other places) used in sd-boot and the comparison
result is used by 'bootctl update' to decide whether to install a new binary.
Before, because 'nn-rc1' compares higher than 'nn', we would refuse to upgrade
pre-release versions.
The boot loader is the primary motivation. I'm not aware of programatic version
comparisons in other places, but it makes sense to use the same versions string
everywhere.
(This patch effectively only matters for non-distro builds, because distro
builds presumably use -Dversion-tag to set something meaningful. Ideally, those
version strings are compatible with our version strings, but this is outside of
our control.)
Yu Watanabe [Mon, 24 Oct 2022 20:35:04 +0000 (05:35 +0900)]
btrfs-util: move btrfs_defrag_fd() from fd-util.[ch]
After
d71ece3f0b85c7a3decc50143b68ac07fc5831ae, the function is not used
in libbasic or libsystemd anymore. Let's move it to more appropriate
place.
Luca Boccassi [Mon, 24 Oct 2022 21:02:58 +0000 (23:02 +0200)]
Merge pull request #25118 from bluca/rc2
hwdb/news for rc3
Luca Boccassi [Mon, 24 Oct 2022 19:26:22 +0000 (20:26 +0100)]
Update autosuspend hwdb
ninja -C build update-hwdb-autosuspend
Luca Boccassi [Mon, 24 Oct 2022 19:25:30 +0000 (20:25 +0100)]
Update hwdb
ninja -C build update-hwdb
Luca Boccassi [Mon, 24 Oct 2022 19:14:12 +0000 (20:14 +0100)]
NEWS: update contributors list
Yu Watanabe [Mon, 24 Oct 2022 19:08:41 +0000 (04:08 +0900)]
Merge pull request #25052 from yuwata/resolvconf-compat
resolvconf-compat: first try to use the specified interface name as is
Frantisek Sumsal [Mon, 24 Oct 2022 17:12:55 +0000 (19:12 +0200)]
udev: fix the errno check if a couple of places
Follow-up to
691a596da15.
Luca Boccassi [Mon, 24 Oct 2022 18:19:17 +0000 (19:19 +0100)]
mkosi: libbpf0 -> libbpf1
Yu Watanabe [Mon, 24 Oct 2022 16:57:41 +0000 (01:57 +0900)]
Merge pull request #25080 from keszybz/search-paths
Refusing linking files underneath our hierarchy, improve error messages
Yu Watanabe [Tue, 18 Oct 2022 11:12:30 +0000 (20:12 +0900)]
test: add tests for setting DNS servers by resolvectl or resolvconf
Luca BRUNO [Mon, 24 Oct 2022 12:49:32 +0000 (12:49 +0000)]
test-string-util: remove several strdupa() calls
This performs the same semantic transformation as the Coccinelle
script 'strdupa.cocci'.
Somehow the existing semantic patch is not properly triggering on
this 'string_replace_char' test.
Edson Juliano Drosdeck [Mon, 24 Oct 2022 16:03:52 +0000 (13:03 -0300)]
hwdb: fix key toggle and programmable button for Positivo K142 (#25111)
H A [Mon, 24 Oct 2022 15:23:38 +0000 (17:23 +0200)]
po: Translated using Weblate (Estonian)
Currently translated at 71.5% (138 of 193 strings)
Co-authored-by: H A <contact+fedora@hen.ee>
Translate-URL: https://translate.fedoraproject.org/projects/systemd/master/et/
Translation: systemd/main
Lennart Poettering [Mon, 24 Oct 2022 10:22:46 +0000 (12:22 +0200)]
homed: properly initialize all return params
Yu Watanabe [Tue, 18 Oct 2022 08:18:55 +0000 (17:18 +0900)]
resolvconf-compat: first parse provided interface name as is
Then, try to drop multiple protocol specifiers at the end.
Strictly speaking, this breaks backward compatibility:
if eth0 and eth0.42 exists, then previously,
echo 'nameserver 192.168.0.1' | resolvconf -a eth0.42
adds the DNS server to eth0 instead of eth0.42, as we unconditionally
dropped the specifier after the last dot, and
echo 'nameserver 192.168.0.1' | resolvconf -a eth0.42.dhcp
adds the DNS server to eth0.42. However, with this commit, now
the both commands add the DNS server to eth0.42. But, hopefully,
this should be preferable behavior.
Fixes #25032.
Zbigniew Jędrzejewski-Szmek [Thu, 20 Oct 2022 10:27:29 +0000 (12:27 +0200)]
man: fix count mismatch
We said "search path" and "search paths" in the same sentence…
Zbigniew Jędrzejewski-Szmek [Thu, 20 Oct 2022 09:32:25 +0000 (11:32 +0200)]
systemctl,manager: refuse linking unit files underneath the search paths
We treat symlinks to unit files outside of the search path differently from
symlinks to unit files *in* the search path. The former are "linked" unit
files, while the latter are enablement symlinks and such and will be removed
when disabling the unit.
The history of the check for in_search_path() is interesting: this condition
was added already in the first version of the code in
830964834f330836b9d33752e83de09d4f38da87. Since the beginning, matching
arguments would simply be ignored. I think this is dubious. The man page says:
> Link a unit file that is *not* in the unit file search paths
> into the unit file search path
But for backwards-compat, let's continue to silently do nothing for files
*in* the search path.
The case of symlinks to unit files underneath the search path, but in some
subdirectory, is less clear. We didn't check for this case, so it was
implicitly allowed. But that's just an oversight, we don't want to allow people
to create additional subhierarchies under our hierarchy. Let's check for this
case and refuse.
Closes #24605.
Zbigniew Jędrzejewski-Szmek [Thu, 20 Oct 2022 10:07:10 +0000 (12:07 +0200)]
shared/install: check that install_changes_add() didn't fail on success
This adds a check for an allocation error for the calls to install_changes_add()
where we're plannig to return success from the call. In cases where we're
returning failure, it doesn't matter as much: the operation will fail anyway,
and if the allocation fails, we'll just get a less descriptive error message.