1
0
mirror of https://github.com/systemd/systemd.git synced 2024-12-22 17:35:35 +03:00
Commit Graph

76433 Commits

Author SHA1 Message Date
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
Mike Yuan
eda6223942 basic/memory-util: introduce mempcpy_typesafe 2024-09-20 08:29:35 +09:00
Mike Yuan
48837c6500 boot: use INC_SAFE where appropriate 2024-09-20 08:28:39 +09:00
Yu Watanabe
754d6414f8
Merge pull request #34480 from yuwata/test-seccomp-suppress-sync
seccomp-util: pass negative fds as is to fsync() and friends
2024-09-20 08:27:33 +09:00
cvlc12
4beac1034d kernel-install: add uki.conf example 2024-09-20 08:24:15 +09:00
Mike Yuan
2b19bed790
sd-path: trivial cleanups for sd_path_lookup{,_strv}() 2024-09-20 00:10:25 +02:00
Mike Yuan
8664dd3c1f
sd-path: modernize from_user_dir()
Deduplicate logic through sd_path_lookup() and from_home_dir().
Besides, rename to from_xdg_user_dir() to indicate
it's a XDG thing.
2024-09-20 00:10:25 +02:00
Mike Yuan
755877f20a
tmpfiles: ERRNO_IS_NOINFO -> _IS_NEG_, correct negative errno checks 2024-09-20 00:00:01 +02:00
Mike Yuan
6e1c603969
tmpfiles: use RET_GATHER more 2024-09-20 00:00:01 +02:00
cvlc12
dbf5b09de4 man: update PCR and Secure Boot key names and paths 2024-09-20 05:01:15 +09:00
Daan De Meyer
939137abb4 firstboot: Prompt for keymap
It's rather crucial to have a good firstboot experience that you
can immediately set the right keymap so let's make sure we prompt
for it.
2024-09-20 04:47:27 +09:00
JoseskVolpe
3135a21be4
hwdb: add keymaps for Acer Nitro 5 AN515-47 (#34493)
This fixes the microphone mute key and NitroSense key for Acer Nitro 5 AN515-47,
so they can be recognized by desktop environments.
2024-09-20 04:36:44 +09:00
Yu Watanabe
c07e10628b test: add tests for seccomp_suppress_sync() 2024-09-20 04:32:56 +09:00
Yu Watanabe
144fbbac23 seccomp-util: pass negative fds as is to fsync() and friends
Closes #34478.

Co-authored-by: Mike Yuan <me@yhndnzj.com>
2024-09-20 04:30:53 +09:00
Yu Watanabe
a3c2a9ee5d
Merge pull request #34486 from DaanDeMeyer/test-process-util
test-process-util: Migrate to new assertion macros
2024-09-19 23:28:15 +09:00
Daan De Meyer
062332f3db
Merge pull request #34481 from yuwata/has-tpm2
tpm2-util: several cleanups for tpm2_support()
2024-09-19 16:22:24 +02:00
Daan De Meyer
bc9a9177b2
Merge pull request #34483 from yuwata/network-conf-parser-neighbor-nexthop
network: several cleanups for conf parsers
2024-09-19 13:59:56 +02:00
Daan De Meyer
e5c6dcac87 test-process-util: Ignore EINVAL from setresuid() and setresgid()
If we're running in a user namespace with a single user and without
the nobody user, we'll get EINVAL from these system calls so make
sure we handle those gracefully.
2024-09-19 13:42:05 +02:00
Daan De Meyer
34a7ca6db2 test-process-util: Use FORK_REOPEN_LOG everywhere we close all fds
To make sure logging works in the child processes.
2024-09-19 13:42:05 +02:00
Daan De Meyer
397820961d test-process-util: Migrate to new assertion macros 2024-09-19 13:42:03 +02:00
Yu Watanabe
3b16e9f419 man/systemd-analyze: mention required libraries for TPM2 support
Closes #34477.
2024-09-19 19:21:08 +09:00
Yu Watanabe
d5a7f3b7d4 tpm2-util: colorize output of 'systemd-analyze has-tpm2' 2024-09-19 19:14:19 +09:00