Yu Watanabe
82f2c33db5
tpm2-util: show loaded libraries in 'systemd-analyze has-tpm2'
...
After 3b16e9f419 , even the libraries are
documented in the man page, it is useful to mention which libraries are
checked in the command output.
Of course, the dependencies are kind of implementation detail, and may
be changed in the future version, but that's especially why I think
showing the library deps in the output is useful.
systemd-analyze is a debugging tool, and already shows many internal
states. I think there is nothing to prevent from showing the deps.
Prompted by #34477 .
2024-09-30 15:40:14 +02:00
David Tardon
cd9c3327cb
logind-dbus: really cancel scheduled shutdown
...
Fixes #34554
2024-09-30 15:13:00 +02:00
Zbigniew Jędrzejewski-Szmek
d713c131a5
Merge pull request #34572 from keszybz/fix-printing-of-RootImageOptions
...
Fix printing of RootImageOptions
2024-09-28 17:23:44 +02:00
Mike Yuan
6fd58537e5
Merge pull request #34548 from SimonPilkington/fix-creds-cat
...
creds: fix cat with encrypted credentials
2024-09-27 20:51:57 +02:00
Zbigniew Jędrzejewski-Szmek
8dc40c25a4
shared: adjust whitespace and formatting
2024-09-27 20:19:58 +02:00
Zbigniew Jędrzejewski-Szmek
69c751c61c
systemctl: fix printing of RootImageOptions
...
The type is a(ss), so a custom printer is required.
Fixes https://github.com/systemd/systemd/issues/33967 .
2024-09-27 20:19:58 +02:00
Mickaël Salaün
e996663475
seccomp-util: include @sandbox in @default
...
Every services and containers should be able to protect their users and
limit the impact of security bugs thanks to the security syscalls
provided by seccomp and Landlock. The goal of these syscalls is to
improve security with additional restrictions. They are designed to be
safely used by unprivileged (and then potentially malicious) users.
Remove the now-redundant "seccomp" entry for nspawn.
2024-09-27 12:37:37 +02:00
Zbigniew Jędrzejewski-Szmek
1ca81b2e00
man: fix formatting in file-hierarchy
...
Somebody wrapped the text, but whitespace is preserved in <programlisting>, so
the output was mangled. It also doesn't make sense to run systemd-path as root
(as indicated by '#'), so drop that. Also, this chunk should be a separate
paragraph.
2024-09-26 19:57:07 +02:00
Daan De Meyer
5acca1b885
mkosi: update arch commit reference
...
* d5a2dc54da Use vmlinux.h from linux-headers
* 59912d804f update checksums...
* 83edb5244e build: set ssh privsep dir to /usr/share/empty.sshd
* 65363cc5ba build: explicitly enable vmlinux-h=generated
* 14e6d27dd4 build: drop deprecated default-hierarchy option
* 81e7545ca3 systemd.install: stop applying ACL ourselves
* 147c214201 systemd-hook: use systemd-notify --booted to detect if systemd is running
* 010bc3c05c upgpkg: 256.6-1: new upstream release
2024-09-25 21:23:16 +02:00
Nils K
543015a164
Fix reference to FileDescriptorStoreMax= directive
2024-09-25 16:16:29 +02:00
Simon Pilkington
bb322e4340
NEWS: Document change to systemd-creds 'cat' verb
...
See: https://github.com/systemd/systemd/pull/34548
2024-09-25 16:08:01 +02:00
Ivan Kruglov
e826a8bed4
machine: resolve race condition in TEST-13-NSPAWN.machinectl.sh
...
I encountered this race condition while working on TEST-13-NSPAWN.varlinkctl.sh.
The long-running machine's init script sometimes does not have time to start and
register signals. As result, occasiounally failed tests.
2024-09-25 12:23:12 +02:00
Simon Pilkington
32951fe4de
creds: fix cat with encrypted credentials
...
Fixes: https://github.com/systemd/systemd/issues/34547
2024-09-25 11:25:48 +02:00
Zbigniew Jędrzejewski-Szmek
20d00d1f3c
TODO: add one more systemctl rfe
2024-09-25 08:56:35 +02:00
Yu Watanabe
4046c49c13
Merge pull request #34549 from weblate/weblate-systemd-main
...
Translations update from Fedora Weblate
2024-09-25 06:49:48 +02:00
Fábio Rodrigues Ribeiro
f46bc5a85e
po: Translated using Weblate (Portuguese (Brazil))
...
Currently translated at 97.2% (246 of 253 strings)
po: Translated using Weblate (Portuguese (Brazil))
Currently translated at 96.0% (243 of 253 strings)
Co-authored-by: Fábio Rodrigues Ribeiro <farribeiro@gmail.com >
Translate-URL: https://translate.fedoraproject.org/projects/systemd/main/pt_BR/
Translation: systemd/main
2024-09-25 03:07:13 +02:00
Gabriel Elyas
f557945157
po: Translated using Weblate (Portuguese (Brazil))
...
Currently translated at 96.0% (243 of 253 strings)
po: Translated using Weblate (Portuguese (Brazil))
Currently translated at 89.3% (226 of 253 strings)
Co-authored-by: Gabriel Elyas <gabrielelyas@protonmail.com >
Translate-URL: https://translate.fedoraproject.org/projects/systemd/main/pt_BR/
Translation: systemd/main
2024-09-25 03:07:13 +02:00
Daan De Meyer
df4d09f78e
units: Order ldconfig after systemd-tmpfiles-setup.service
...
tmpfiles might be linking the configuration for ldconfig into /etc
so make sure it runs after it so that the configuration is guaranteed
to be in place.
2024-09-24 15:32:58 +02:00
Daan De Meyer
e11745d000
repart: Determine verity sig size based on partition designator
...
Verity= is an image build concept, not a first boot concept, whereas
a partition designator is always available, so let's do the size stuff
based on that.
2024-09-24 09:07:41 +02:00
Daan De Meyer
942eba930b
repart: Use swap format for swap partition even if encrypted
2024-09-23 10:44:37 +02:00
Daan De Meyer
f3b8e81f54
repart: Add a log message when we're about to fsync().
2024-09-23 10:43:42 +02:00
Daan De Meyer
04c00944d8
Merge pull request #34517 from DaanDeMeyer/clangd
...
mkosi: Add back support for running clangd within mkosi
2024-09-22 15:57:13 +02:00
Daan De Meyer
80d4ea4457
mkosi: Add missing SPDX line
2024-09-22 15:23:08 +02:00
Daan De Meyer
6d862a9dc0
mkosi: Add back support for running clangd within mkosi
...
This allows hacking on systemd without installing any build
dependencies except mkosi on the host machine.
2024-09-22 15:23:01 +02:00
Daan De Meyer
0a40325573
Preset user units on first boot as well
...
We need to make sure the presets from /usr/lib/systemd/user-preset
are applied as well. Currently only the ones from
/usr/lib/systemd/system-preset are applied.
2024-09-21 13:57:29 +09:00
Yu Watanabe
bfa834f138
Merge pull request #34511 from YHNdnzj/strv-extend-strv-consume
...
basic/strv: introduce strv_extend_strv_consume()
2024-09-21 13:57:02 +09:00
Yu Watanabe
f48bc69ca1
Merge pull request #34502 from yuwata/strv_find_closest
...
strv: introduce strv_find_closest()
2024-09-21 13:56:34 +09:00
Yu Watanabe
0f03562d97
Merge pull request #34515 from YHNdnzj/machined-machines-by
...
machined: modernize a bit
2024-09-21 13:53:41 +09:00
Mike Yuan
a2c8652a2a
tree-wide: use strv_extend_strv_consume() where appropriate
2024-09-21 00:53:50 +02:00
Mike Yuan
8a7ade7427
basic/strv: introduce strv_extend_strv_consume()
2024-09-21 00:53:49 +02:00
Mike Yuan
f3270bed48
machined-dbus: move manager_add_machine() and _get_machine_by_pid() to -core
2024-09-21 00:35:38 +02:00
Mike Yuan
85ab917bc8
machined: rename machine_{units,leaders} to machines_by_*
...
Also port machines_by_leader to store PidRef-s.
2024-09-21 00:35:38 +02:00
Mike Yuan
533c20ca5b
machined: fix bogus error check for machine_link()
2024-09-21 00:18:41 +02:00
Mike Yuan
527b9e2437
basic/strv: make string_strv_hash_ops static, add missing assertions
2024-09-20 22:44:35 +02:00
Mike Yuan
b9aef48837
shared/bus-map-properties: modernize map_basic() and bus_map_strv_sort()
2024-09-20 22:44:35 +02:00
Mike Yuan
47941afd17
basic/memory-util: make mempcpy_typesafe() take number of obj rather than raw size
...
Follow-up for eda6223942
2024-09-20 22:44:34 +02:00
Mike Yuan
34fb408f8b
basic: replace size_multiply_overflow() with MUL_ASSIGN_SAFE where applicable
2024-09-20 22:44:34 +02:00
Mike Yuan
175de2c28e
basic/macro: move DECIMAL_STR_FMT to shared/tests
...
This shall never be used outside of test functions.
2024-09-20 22:44:34 +02:00
Daan De Meyer
0121b84e41
Add an extra debug log to dissect_image()
2024-09-21 05:38:20 +09:00
Yu Watanabe
3ae0e54527
machine: fix bus method argument name: who -> whom
...
Follow-up for cd2fb04960 .
2024-09-21 05:38:01 +09:00
Yu Watanabe
07919a1857
verbs: use strv_find_closest()
...
This also makes the list of verbs is always shown on failure.
2024-09-21 05:10:47 +09:00
Yu Watanabe
ffdf497860
strv: introduce strv_find_closest()
...
Follow-up for 1e1ac5d53b .
2024-09-21 05:06:12 +09:00
Yu Watanabe
427848ffd0
Merge pull request #34510 from keszybz/mkosi-version-checks
...
Bump minimum required mkosi version
2024-09-21 03:16:25 +09:00
Zbigniew Jędrzejewski-Szmek
3a157e7cb4
mkosi: bump mkosi MinimumVersion
...
dbff64ddf0 bumped the hash to
a commit after 24.3, so let's tell the users that 25~devel is
the minimum required.
2024-09-20 16:45:44 +02:00
Zbigniew Jędrzejewski-Szmek
3f922abe49
mkosi: supress error messages from git
...
When updating, I get a message like:
fatal: Not a valid object name a67221c3f0d0b81b9b5b3230a71d09044342f1a4^{commit}
The failure here is expected, it just means that an update is
necessary, so suppress output.
2024-09-20 16:45:44 +02:00
Yu Watanabe
146b44d0a0
sd-ipv4acd: fix assertion triggered when an ARP received in STARTED state
...
When a network is busy, an ARP may be received before the timer event
source triggered first time.
Fixes #34489 .
2024-09-20 14:21:42 +02:00
Jörg Behrmann
81b4d68153
NEWS: fix typos and remove backticks
2024-09-20 20:07:16 +09:00
Yu Watanabe
72689baf48
Merge pull request #34499 from YHNdnzj/sd-path-trivial-cleanup
...
sd-path: trivial cleanups
2024-09-20 08:54:51 +09:00
Yu Watanabe
fc19ad8227
Merge pull request #34496 from YHNdnzj/tmpfiles-neg-errno
...
tmpfiles: ERRNO_IS_NOINFO -> _IS_NEG_, correct negative errno checks
2024-09-20 08:54:34 +09:00
Michael Ferrari
1e1ac5d53b
firstboot: add similar input suggestion
...
This uses the same logic as similar verb suggestion for command line
utilities. Try to be helpful when the user entered something invalid
instead of just showing the prompt again.
2024-09-20 08:34:03 +09:00