1
0
mirror of https://github.com/systemd/systemd synced 2025-10-05 16:03:15 +02:00

83976 Commits

Author SHA1 Message Date
Guido Günther
01703b7761 NEWS: Document new uaccess udev rule priority requirement
Closes: https://github.com/systemd/systemd/issues/39206

Signed-off-by: Guido Günther <agx@sigxcpu.org>
2025-10-05 15:47:22 +02:00
jsks
fc890aedd3 mam: add sd_bus_track_handler_t signature to manpage (#39204)
This is consistent with how the other handler/callback types are
documented.
2025-10-05 19:00:22 +09:00
Yu Watanabe
b49bff0da7 shared/bootspec: don't warn for new loader.conf options and correctly parse new uki and profile boot entry options (#39165)
Commit e2a3d56218 added the `uki` option
to sd-boot, and 1e9c9773b9 added
`profile`, but because these were not added in src/shared/bootspec,
bootctl still shows warnings like `Unknown line 'uki', ignoring.` when
parsing the config. This PR allows parsing and displaying them correctly
in `bootctl` output. It also stops it from printing a warning for any of
the new `loader.conf` options (`log-level`, `reboot-on-error`, etc.).
Note that `uki-url` is still not handled as I can't easily test it.
2025-10-04 23:35:54 +02:00
Zbigniew Jędrzejewski-Szmek
60597825ef man/sd-login: minor grammar updates 2025-10-04 23:26:47 +02:00
Zbigniew Jędrzejewski-Szmek
4a3620c55a man: fix advice regarding thread safety of libsystemd
The prohibition to move libsystemd objects between threads was added in
64a7ef8bc0 ('man: be more explicit about thread
safety of sd_journal'). At the time, this was valid, because we were using the
mempool for allocation and it apparently didn't handle access from different
threads. Sadlly, the commit links to a bugzilla entry referenced in the commit
is not publicly visible anymore, so the details are murky. But we stopped using
the mempool in a5d8835c78 ('mempool: only enable
mempool use when linked to libsystemd-shared.so'), with subsequent followup in
b01f31954f ('Turn mempool_enabled() into a weak
symbol'). The restriction added in the man page is not necessary since then.

The text in the man page was arguably incorrect in calling the code
"thread-agnostic". If the code does not support being touched from threads at
all and has global state to tied to the main thread, it is not "agnostic", but
just doesn't support threads.

(I'm looking into https://github.com/systemd/python-systemd/issues/143, and
with the current scheme, the python-systemd module and all python code using
libsystemd would be very hard to use. With the change to free-threaded python
in python3.13, i.e. the replacement of single Global Interpreter Lock by
locking on individual objects, this limitation would become even more
constraining.)
2025-10-04 23:26:47 +02:00
Yu Watanabe
5fc94cc6d9 Use string tables to parse option arguments (#39173) 2025-10-04 23:16:12 +02:00
val4oss
b8efd65975 TEST-74-AUX-UTILS: use sshd_config.d
* From the TEST-74-AUX-UTILS.ssh.sh writing directly into
  /etc/ssh/sshd_config can hide config from distro using /usr/etc.
* Using directory configuration /etc/ssh/sshd_config.d/* suits for all
  cases.

Signed-off-by: val4oss <val4oss@pm.me>
2025-10-04 23:00:31 +02:00
Yu Watanabe
273cb33b61 man: fix typo
Follow-up for 91214a37ef.
Fixes #39203.
2025-10-05 05:45:21 +09:00
Yu Watanabe
9ce3ef1304 meson: add man and html targets (#39207) 2025-10-04 22:41:58 +02:00
Oğuz Ersen
5fd9939789 po: Translated using Weblate (Turkish)
Currently translated at 100.0% (264 of 264 strings)

Co-authored-by: Oğuz Ersen <oguz@ersen.moe>
Translate-URL: https://translate.fedoraproject.org/projects/systemd/main/tr/
Translation: systemd/main
2025-10-04 22:39:07 +02:00
Zbigniew Jędrzejewski-Szmek
1e737d44d1 meson: add target aliases 'man' and 'html'
Previously we would need to say 'ninja -C build man/man man/html', now
just 'ninja -C build man html'.
2025-10-04 18:13:27 +02:00
Zbigniew Jędrzejewski-Szmek
29832663dc meson: drop remaining target names
Most of those were dropped in 7d247d3cb8. I left
behind the few cases where the 'output' name was different from the target name.
But we actually don't need those either, so get rid of those. (And one case
where I missed the name argument.)

No functional change, except that e.g. 'ninja -C build update-man-rules-impl'
doesn't work, but I hope nobody was using that.
2025-10-04 18:13:27 +02:00
Zbigniew Jędrzejewski-Szmek
675bfef837 Stop specifying license for generated file, instead mark as generated
I exclude generated files from license check, and I noticed
that this file was marked with a license header, which doesn't
make much sense, it is not copyrightable.
2025-10-04 18:13:27 +02:00
Zbigniew Jędrzejewski-Szmek
ea44302b29 meson: using f-strings in meson
Those were added before 0.61 which is our minimum version.

Dots were dropped from the end of some messages. Most messages did not have the
trailing dot.

0.63 added support for multi-line f-strings. We can't use those yet.
2025-10-03 21:21:52 +02:00
David Tardon
188049d38c tree-wide: combine DUMP_STRING_TABLE() and return 2025-10-02 16:19:03 +02:00
David Tardon
365399c4e4 nspawn: inline handle_arg_console() to its only call place 2025-10-02 16:19:03 +02:00
David Tardon
65c4347d6e nspawn: set arguments directly
There's no point in going through handle_arg_console() now that all the
checks have been moved out of it.
2025-10-02 16:19:03 +02:00
David Tardon
99df84ef23 nspawn: postpone selection of console mode
Moving it away from argument parsing code allows to simplify that.
2025-10-02 16:19:03 +02:00
David Tardon
25f1473c81 nspawn: use table to parse --console= 2025-10-02 16:18:41 +02:00
David Tardon
1da7dcf427 main: extract common code to a function 2025-10-02 16:13:40 +02:00
David Tardon
f29f6b6b7d userdbctl: use table to parse --output= 2025-10-02 16:13:40 +02:00
David Tardon
a5fada5d5d userdbctl: require value for --output=
Currently, when --output= is used with empty string, it resets the mode.
E.g.,

 # userdbctl user --output=json --output= ...

will use the default output mode, not JSON. But that functionality is
not documented and it seems to be of little practical use. Let's just
drop it.
2025-10-02 16:13:40 +02:00
David Tardon
292928e964 vpick-tool: use table to parse --print= 2025-10-02 16:13:40 +02:00
David Tardon
9033f923f9 homectl: use table to parse --export-format= 2025-10-02 16:13:40 +02:00
David Tardon
9b3041d9fe cgtop: rename enum value to match its string repr. 2025-10-02 16:13:20 +02:00
n0099
613f7f26aa nspawn: correct the option name --private-users-ownership= when it's not expected value 2025-10-02 16:06:55 +02:00
Lucas Adriano Salles
f8646b9a2e hwdb: fix calibrate rotation sensor for Positivo K116J (#39189)
Fixes #39188.
2025-10-02 22:50:04 +09:00
Managor
b0fe317d14 Update systemctl.xml 2025-10-02 11:28:40 +02:00
Managor
9f4f7f0372 Update systemctl.xml 2025-10-02 11:28:40 +02:00
dependabot[bot]
0712a94006 build(deps): bump ossf/scorecard-action from 2.4.2 to 2.4.3
Bumps [ossf/scorecard-action](https://github.com/ossf/scorecard-action) from 2.4.2 to 2.4.3.
- [Release notes](https://github.com/ossf/scorecard-action/releases)
- [Changelog](https://github.com/ossf/scorecard-action/blob/main/RELEASE.md)
- [Commits](05b42c6244...4eaacf0543)

---
updated-dependencies:
- dependency-name: ossf/scorecard-action
  dependency-version: 2.4.3
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-10-02 10:25:58 +02:00
dependabot[bot]
db555fedf2 build(deps): bump meson from 1.8.3 to 1.9.1 in /.github/workflows
Bumps [meson](https://github.com/mesonbuild/meson) from 1.8.3 to 1.9.1.
- [Release notes](https://github.com/mesonbuild/meson/releases)
- [Commits](https://github.com/mesonbuild/meson/compare/1.8.3...1.9.1)

---
updated-dependencies:
- dependency-name: meson
  dependency-version: 1.9.1
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-10-02 10:25:16 +02:00
David Tardon
048d813fcd cgtop: use table to parse --cpu= 2025-10-01 16:16:58 +02:00
David Tardon
3a21f6aa6e cgtop: use table to parse --order= 2025-10-01 16:16:47 +02:00
Yu Watanabe
9fe0b90005 units/systemd-battery-check.service: minor cleanup (#39178) 2025-09-30 20:54:00 +02:00
Mike Yuan
e8d5badc5f units/systemd-battery-check.service: split [Unit] options into groups 2025-09-30 16:34:54 +02:00
Mike Yuan
997717e274 units/systemd-battery-check.service: prettify Description=
Addresses https://github.com/systemd/systemd/pull/39170#issuecomment-3348997894
2025-09-30 16:34:44 +02:00
Mike Yuan
817929a14e Several more timezone related cleanups (#39160)
Continuation of #38876.
2025-09-30 15:40:40 +02:00
Felix Pehla
0b89d8cfec shared/bootspec: update valid loader.conf options 2025-09-29 23:46:59 +02:00
Felix Pehla
aaa3e6880d shared/bootspec: parse loader.conf options added in v258 2025-09-29 23:14:11 +02:00
Frantisek Sumsal
0cb252d50f test: store and compare just the property value
Follow-up for 5730a400fd.
2025-09-29 23:01:24 +02:00
Felix Pehla
5fb90fa319 shared/bootspec: parse 'profile' boot entry option
Commit 1e9c9773b9 makes sd-boot recognize
a 'profile' option in a boot loader entry but bootctl and other
components parsing said config do not know about it.

This commit makes the option get parsed correctly and displays it too.
2025-09-29 23:01:12 +02:00
Felix Pehla
4a94a1b83f shared/bootspec: parse 'uki' boot entry option
Commit e2a3d56218 (as part of #36314)
makes sd-boot recognize a 'uki' stanza in a boot loader entry and
uapi-group/specifications@3f2bd8236d adds
it to the BLS, but bootctl and other components parsing said config do
not know about it, leading to the error message
`Unknown line 'uki', ignoring.` when attempting to parse the same entry.

This commit makes it get parsed the same way that that 'efi' is.
2025-09-29 22:59:49 +02:00
Yu Watanabe
2c883d7591 units: move FailureAction= to the correct section
FailureAction= in [Service] is still supported but deprecated.

Follow-up for e3d4148d50.
2025-09-29 22:47:24 +02:00
David Tardon
854789543b export: use table to parse --format= 2025-09-29 16:04:12 +02:00
Lennart Poettering
0c3639d0f5 homectl firstboot tweaks (#39137)
This adds what #39101 and #39070 did for the regular firstboot wizard
but for the homectl firstboot part: i.e. port to the generic prompt
loop, show the "chrome" bars, and mute the console.

And then it also makes querying for aux groups and shells optional,
because quite frankly, i am not sure what to answer there.
2025-09-29 10:56:27 +02:00
Luca Boccassi
054e542c54 vmspawn: enable qemu guest agent with --console=gui
For auto resolution scaling, etc
2025-09-29 10:53:14 +02:00
kanitha chim
0c0a99599c po: Translated using Weblate (Khmer (Central))
Currently translated at 100.0% (264 of 264 strings)

Co-authored-by: kanitha chim <kchim@redhat.com>
Translate-URL: https://translate.fedoraproject.org/projects/systemd/main/km/
Translation: systemd/main
2025-09-28 20:03:38 +09:00
Yu Watanabe
8431368668 tree-wide: stop assigning colon prefixed timezone to $TZ
glibc (and also musl, though we do not officially support it yet)
silently ignores colon prefix in $TZ. Let's always not prefix the
timezone.

tzset(3) states:
> A nonempty value of TZ can be one of two formats, either of which can
> be preceded by a colon which is ignored.

Addresses https://github.com/systemd/systemd/pull/38876#discussion_r2384347594.
2025-09-28 11:14:00 +09:00
Yu Watanabe
7d6f1d695c timedatectl,test: use SAVE_TIMEZONE at more places 2025-09-28 10:10:47 +09:00
Yu Watanabe
672924356f calendar-spec: use SAVE_TIMEZONE
Then, we can avoid heavy fork() operation.
2025-09-28 10:09:47 +09:00