Commit Graph
85325 Commits
Author SHA1 Message Date
Zbigniew Jędrzejewski-Szmek 3f9c133922 homectl: split out helper parse_capability_set_field 2026-01-13 17:59:54 +01:00
Zbigniew Jędrzejewski-Szmek 0c2199b4cc homectl: split out helper parse_rebalance_weight 2026-01-13 17:59:54 +01:00
Zbigniew Jędrzejewski-Szmek a161867b00 homectl: split out helper parse_auto_resize_mode_field 2026-01-13 17:59:54 +01:00
Zbigniew Jędrzejewski-Szmek ed93b1ed14 homectl: split out helpers parse_{time,timestamp}_field 2026-01-13 17:59:54 +01:00
Zbigniew Jędrzejewski-Szmek 316e9887f2 homectl: split out helper parse_group_field 2026-01-13 17:59:54 +01:00
Zbigniew Jędrzejewski-Szmek 65cf26c72d homectl: split out helper parse_weight_field 2026-01-13 17:59:54 +01:00
Zbigniew Jędrzejewski-Szmek 12771c0cc6 homectl: split out helpers parse_{disk,sector}_size_field 2026-01-13 17:59:54 +01:00
Zbigniew Jędrzejewski-Szmek 873d38eac9 homectl: split out helper parse_language_field 2026-01-13 17:59:54 +01:00
Zbigniew Jędrzejewski-Szmek 0126bebccb homectl: split out helper parse_environment_field 2026-01-13 17:59:54 +01:00
Zbigniew Jędrzejewski-Szmek 47749fa762 homectl: split out helper parse_rlimit_field 2026-01-13 17:59:54 +01:00
Zbigniew Jędrzejewski-Szmek 2ef165ba1c homectl: fix confusion between "FOO" and "RLIMIT_FOO" as json keys
We parse RLIMIT_FOO, FOO, and LimitFOO all the same. But the keys in the
JSON dict are supposed to be "RLIMIT_FOO". We were creating such keys,
but then filtering them using "FOO", i.e. the filtering was not effective.

Using strjoina since both strings are under our control.
2026-01-13 17:59:54 +01:00
Zbigniew Jędrzejewski-Szmek 56c05601f4 homectl: split out helper parse_nice_field 2026-01-13 17:59:54 +01:00
Zbigniew Jędrzejewski-Szmek 5db63f9de8 homectl: split out helpers that extend parse_string_field 2026-01-13 17:59:54 +01:00
Zbigniew Jędrzejewski-Szmek 9f4c9a6cd9 homectl: split out helper parse_mode_field 2026-01-13 17:59:54 +01:00
Zbigniew Jędrzejewski-Szmek 2bcf520f31 homectl: split out helper parse_boolean_field 2026-01-13 17:59:54 +01:00
Zbigniew Jędrzejewski-Szmek b1982aada6 homectl: split out helpers parse_{unsigned,u64,size}_field 2026-01-13 17:59:54 +01:00
Zbigniew Jędrzejewski-Szmek d7a4dfb8b2 homectl: split out helper parse_string_field 2026-01-12 12:24:51 +01:00
Zbigniew Jędrzejewski-Szmek fbd7ca0ef0 homectl: split out parser parse_ssh_authorized_keys
The idea is to split out helpers to make parse_argv() itself more
manageable. If possible, the helpers will be reused in many places. But
even if not, as in this case, it seems good to split out the code for a
specific option. Always, the sd_json_variant** pointer or pointers that
are operated on are selected in the caller. This way it is easier to see
which of the identity variables is used and if two different ones are
used.
2026-01-12 12:24:34 +01:00
Zbigniew Jędrzejewski-Szmek 689391f8c8 TEST-46-HOMED: fix 2 minute timeout in cleanup
The test passes but for two minutes the cleanup function just logs:
Failed to inspect home: No home for user homedsshtest known
Failed to inspect home: No home for user homedsshtest known
Failed to inspect home: No home for user homedsshtest known
...

Do not wait for the user to become inactive or remove the user if 'homectl
inspect' doesn't find the user. This brings a successfull run from 176 s
to 58 s here.
2026-01-04 16:04:54 +01:00
Mike Yuan fd99348353 bus-unit-util: ReloadSignal is a Service property
Follow-up for c133545430
2025-12-16 10:37:09 +01:00
Luca Boccassi 6066106b3c ci: remove --quiet from mkosi integration suite run
Given the integration tests take a while to run, it is useful to see
at which point it is while it is running. Sometimes only a test
script or such subset is changed, which means there's no need to
wait for the entire suite to run, especially with the sanitizers
job which is super slow.

Partially reverts 9848f56cc6
2025-12-16 09:11:06 +01:00
Luca Boccassi b5032cf979 Translations update from Fedora Weblate (#40097)
Translations update from [Fedora
Weblate](https://translate.fedoraproject.org) for
[systemd/main](https://translate.fedoraproject.org/projects/systemd/main/).



Current translation status:

![Weblate translation
status](https://translate.fedoraproject.org/widget/systemd/main/horizontal-auto.svg)
2025-12-15 20:51:04 +00:00
Priit Jõerüüt eb307eebb0 po: Translated using Weblate (Estonian)
Currently translated at 90.1% (238 of 264 strings)

Co-authored-by: Priit Jõerüüt <jrtkbfdr@users.noreply.translate.fedoraproject.org>
Translate-URL: https://translate.fedoraproject.org/projects/systemd/main/et/
Translation: systemd/main
2025-12-15 19:58:24 +00:00
Henri Aunin 56ae796774 po: Translated using Weblate (Estonian)
Currently translated at 90.1% (238 of 264 strings)

Co-authored-by: Henri Aunin <contact+fedora@hen.ee>
Translate-URL: https://translate.fedoraproject.org/projects/systemd/main/et/
Translation: systemd/main
2025-12-15 19:58:23 +00:00
Nick Rosbrook 39d3f63782 mkosi: use qemu from noble-proposed instead of ppa
This is also temporary, but demonstrates that the version of qemu
currently in noble-proposed fixes https://launchpad.net/bugs/2127974,
which will ultimately allow for the fix to be released to noble-updates.
2025-12-15 19:16:57 +00:00
Yu Watanabe fd2cdadc14 integration-test: check tools distribution rather than image distribution
The tools and image distributions may be different.

This also fixes invalid escape sequence.

Follow-up for 9b42cc3b12.
2025-12-15 23:11:47 +09:00
Yu Watanabe 2960889a2c mount-util: fix typo
Follow-up for 273c6bc045.
2025-12-15 11:20:29 +09:00
Yu Watanabe 82e3f6c5f9 sysext: Fix config file section docs and --root= (#40063) 2025-12-15 09:45:29 +09:00
Yu Watanabe 93378148d4 tree-wide: normalize comment style 2025-12-15 08:50:13 +09:00
0x06 8e20b9a79d hwdb: Fix ACCEL_MOUNT_MATRIX for Lenovo Ideapad MIIX 310-ICR (#40067)
Tested with monitor-sensor on bvr1HCN44WW
2025-12-15 07:19:10 +09:00
David Santamaría Rogado a0a64f6b67 hwdb: sensor: Remove Lenovo IdeaPad Duet 3 accel mount matrix (#40075)
Same case as IdeaPad D330, matrix applied to solve issues in wayland
compositors when is not the way because correct data is send by the
sensor.

As described in #39529, let's remove the matrix.
2025-12-15 07:16:10 +09:00
David Santamaría Rogado 6855c4a7f7 hwdb: sensor: Add HP OmniBook Ultra Flip 14 accel mount matrix (#40076)
HP OmniBook Ultra Flip Laptop 14-fh0xxx tilt is inverted by default so
screen tilt-face down is up and vice versa, invert the axis then.
2025-12-15 07:14:00 +09:00
Daan De Meyer b96dccaba3 namespace: Clone root dir descriptor before use (#39939)
Before doing anything with the root directory file descriptor, let's
make sure we clone it first so that the caller can't mess with mount fd
attributes via mount_setattr() anymore.

We clone during parsing instead of in executor so that the caller can't
mess with the mount fd between invocations.
2025-12-14 13:34:17 +01:00
Daan De Meyer 2cee5c22b6 TEST-50-DISSECT: Make sure RootDirectoryFileDescriptor= can be reused 2025-12-14 11:32:08 +01:00
Daan De Meyer 5eb0639faa namespace: Clone root dir descriptor before use
Before doing anything with the root directory file descriptor, let's
make sure we clone it first so that the caller can't mess with mount fd
attributes via mount_setattr() anymore.

We clone during parsing instead of in executor so that the caller can't
mess with the mount fd between invocations.
2025-12-14 11:32:06 +01:00
Daan De Meyer 273c6bc045 mount-util: Add mount_fd_clone() helper
The kernel prevents you from open_tree()'ing an open_tree() fd unless it
was created from the caller's mount namespace. For various use cases, we
want to be able to open_tree() arbitrary mount file descriptors. Turns
out there's a way go get around it by mounting the mount file descriptor
in a throw-away mount namespace and then open_tree()'ing the mount file
descriptor. Let's implement this as a new helper mount_fd_clone() and
add a test for it.

Because move_mount()'ing the original fd makes it pretty useless as it
can't be move_mount()'ed again, we optionally make a second clone which
can replace the original fd so it can be cloned again later.
2025-12-14 11:31:59 +01:00
Alexis-Emmanuel Haeringer 595d88cdc8 conf-files: include the expected suffix in the 'unexpected suffix' debug message. 2025-12-13 11:46:37 +01:00
Mike Yuan 7524671f74 core/execute-serialize: do not gracefully skip unknown image policies in executor (#40062) 2025-12-12 16:20:14 +01:00
Kai Lueke 4938777695 man/sysext.conf: Fix section name to match code
The code uses SysExt and ConfExt for section names but the docs use
Sysext and Confext.
Align the docs with the code.
2025-12-12 21:54:47 +09:00
Kai Lueke f351668cbe sysext: Fix config file support with --root=
Config files for --root= weren't picked up as expected because the
--root= flag got parsed after the config file.
Switch the order of config file and CLI flag parsing while letting the
CLI flags overwrite things set by the config files by tracking state
during parsing.
2025-12-12 21:50:45 +09:00
Daan De Meyer 0859fe3f32 discover-image: Rework image_make()
Currently, image_new() will calculate the image
path as the combination of dir_path and filename,
which is completely broken if filename is absolute
and dir_path is set.

Let's fix this by thoroughly cleaning up the
image_make() interface. Instead of having four
different arguments to pass in the image path,
let's reduce that to two, a file descriptor and a
path. If no file descriptor is provided, we create
own ourselves by opening the given path.

The callsites are updated to pass in an existing file
descriptor when available. Path calculation is moved
to callers instead of image_make().
2025-12-12 12:25:57 +01:00
Daan De Meyer 9848f56cc6 tree-wide: Use meson test -q
meson test output is extremely verbose, printing
a separate line for each successful test. Let's
add -q/--quiet everywhere so it only prints full
lines for skipped and failed tests.
2025-12-12 11:45:58 +01:00
0x06 85e6b98380 hwdb: Add ACCEL_MOUNT_MATRIX for variant of TERRA PAD 1061
Tested with monitor-sensor
2025-12-12 11:22:21 +01:00
Fletcher Woodruff 65eebee9bf resolve: use strcmp when comparing DnsServer names
This fixes an issue where duplicate DNS Servers are added to
to resolv.conf files even when all fields are the same.
2025-12-12 10:12:21 +01:00
Mike Yuan cc317bb82f core/execute-serialize: do not gracefully skip unknown image policies in executor
Follow-up for 7c0afcdde2

Addresses https://github.com/systemd/systemd/pull/40060#issuecomment-3641288267

As commented, the unknown values should have been filtered out
in pid1's initial parsing already, and the communication between
pid1 and executor is entirely internal which makes the graceful
practice counterproductive.
2025-12-11 16:32:35 +01:00
Mike Yuan f98520690c shared/image-policy: format ", ignoring" + value msg in our usual style 2025-12-11 16:31:38 +01:00
Luca Boccassi 7c0afcdde2 core: gracefully skip unknown policy designators in RootImagePolicy et al (#40060)
Usually we gracefully ignore unknown configuration parameters, so that
service files can be written by upstreams and used across a variegated
range of distributions with various versions of systemd, to avoid
forcing users to the minimum common denominator and only adding settings
that are supported by the oldest distro supported.

Image policies do not behave like this, and any unknown partition or
policy designator causes the whole unit to fail to parse and a hard
error.

Change it so that parsing RootImagePolicy and friends via unit file or
D-Bus logs but otherwise ignores unknown specifiers, like other options
do.

This allows us to add new specifiers in the future, and users to adopt
them immediately.

Follow-up for d452335aa4
2025-12-11 14:38:26 +09:00
Yu Watanabe 72711b76e0 TEST-85-NETWORK: enable NetworkdSysctlTest
Note, each test case must be prefixed with 'test_'.

This also adds one more log check for issue #40051.

Follow-up for c78bcda461.
2025-12-11 14:37:04 +09:00
Luca Boccassi 427dcb2eeb meson: bump version to v259~rc3 2025-12-10 17:35:06 +00:00
Zbigniew Jędrzejewski-Szmek 0c8c70e2b3 Chores for RC3 (#40058) 2025-12-10 18:33:05 +01:00