]> git.ipfire.org Git - thirdparty/systemd.git/log
thirdparty/systemd.git
13 months agoukify: Remove special casing for .linux section 34583/head
Daan De Meyer [Mon, 30 Sep 2024 11:50:27 +0000 (13:50 +0200)] 
ukify: Remove special casing for .linux section

Now that we properly leave sufficient space for inline execution of
the .linux section, let's remove the special casing of the .linux
section as it doesn't need to be the last section anymore now.

13 months agoukify: Use SizeOfImage from linux image as virtual size of .linux section
Daan De Meyer [Mon, 30 Sep 2024 11:42:50 +0000 (13:42 +0200)] 
ukify: Use SizeOfImage from linux image as virtual size of .linux section

The SizeOfImage is bigger than the image itself so that space is
guaranteed to be available for in place execution of the linux image. Let's
make sure we take this into account and use SizeOfImage as the section's virtual
size instead of the size of the image itself.

Fixes #34578

13 months agoukify: Drop unused size() method
Daan De Meyer [Mon, 30 Sep 2024 11:42:23 +0000 (13:42 +0200)] 
ukify: Drop unused size() method

13 months agounits: Order ldconfig after systemd-tmpfiles-setup.service
Daan De Meyer [Mon, 23 Sep 2024 11:20:42 +0000 (13:20 +0200)] 
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.

13 months agorepart: Determine verity sig size based on partition designator
Daan De Meyer [Thu, 19 Sep 2024 12:04:34 +0000 (14:04 +0200)] 
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.

13 months agorepart: Use swap format for swap partition even if encrypted
Daan De Meyer [Sat, 21 Sep 2024 20:11:25 +0000 (22:11 +0200)] 
repart: Use swap format for swap partition even if encrypted

13 months agorepart: Add a log message when we're about to fsync().
Daan De Meyer [Sun, 22 Sep 2024 13:42:52 +0000 (15:42 +0200)] 
repart: Add a log message when we're about to fsync().

13 months agoMerge pull request #34517 from DaanDeMeyer/clangd
Daan De Meyer [Sun, 22 Sep 2024 13:57:13 +0000 (15:57 +0200)] 
Merge pull request #34517 from DaanDeMeyer/clangd

mkosi: Add back support for running clangd within mkosi

13 months agomkosi: Add missing SPDX line 34517/head
Daan De Meyer [Sun, 22 Sep 2024 13:23:08 +0000 (15:23 +0200)] 
mkosi: Add missing SPDX line

13 months agomkosi: Add back support for running clangd within mkosi
Daan De Meyer [Sat, 21 Sep 2024 17:29:15 +0000 (19:29 +0200)] 
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.

13 months agoPreset user units on first boot as well
Daan De Meyer [Thu, 19 Sep 2024 07:16:14 +0000 (09:16 +0200)] 
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.

13 months agoMerge pull request #34511 from YHNdnzj/strv-extend-strv-consume
Yu Watanabe [Sat, 21 Sep 2024 04:57:02 +0000 (13:57 +0900)] 
Merge pull request #34511 from YHNdnzj/strv-extend-strv-consume

basic/strv: introduce strv_extend_strv_consume()

13 months agoMerge pull request #34502 from yuwata/strv_find_closest
Yu Watanabe [Sat, 21 Sep 2024 04:56:34 +0000 (13:56 +0900)] 
Merge pull request #34502 from yuwata/strv_find_closest

strv: introduce strv_find_closest()

13 months agoMerge pull request #34515 from YHNdnzj/machined-machines-by
Yu Watanabe [Sat, 21 Sep 2024 04:53:41 +0000 (13:53 +0900)] 
Merge pull request #34515 from YHNdnzj/machined-machines-by

machined: modernize a bit

13 months agotree-wide: use strv_extend_strv_consume() where appropriate 34511/head
Mike Yuan [Thu, 19 Sep 2024 21:58:00 +0000 (23:58 +0200)] 
tree-wide: use strv_extend_strv_consume() where appropriate

13 months agobasic/strv: introduce strv_extend_strv_consume()
Mike Yuan [Thu, 19 Sep 2024 14:11:16 +0000 (16:11 +0200)] 
basic/strv: introduce strv_extend_strv_consume()

13 months agomachined-dbus: move manager_add_machine() and _get_machine_by_pid() to -core 34515/head
Mike Yuan [Fri, 20 Sep 2024 22:15:15 +0000 (00:15 +0200)] 
machined-dbus: move manager_add_machine() and _get_machine_by_pid() to -core

13 months agomachined: rename machine_{units,leaders} to machines_by_*
Mike Yuan [Fri, 20 Sep 2024 22:05:36 +0000 (00:05 +0200)] 
machined: rename machine_{units,leaders} to machines_by_*

Also port machines_by_leader to store PidRef-s.

13 months agomachined: fix bogus error check for machine_link()
Mike Yuan [Fri, 20 Sep 2024 21:58:14 +0000 (23:58 +0200)] 
machined: fix bogus error check for machine_link()

13 months agobasic/strv: make string_strv_hash_ops static, add missing assertions
Mike Yuan [Thu, 12 Sep 2024 17:06:02 +0000 (19:06 +0200)] 
basic/strv: make string_strv_hash_ops static, add missing assertions

13 months agoshared/bus-map-properties: modernize map_basic() and bus_map_strv_sort()
Mike Yuan [Thu, 19 Sep 2024 21:29:38 +0000 (23:29 +0200)] 
shared/bus-map-properties: modernize map_basic() and bus_map_strv_sort()

13 months agobasic/memory-util: make mempcpy_typesafe() take number of obj rather than raw size
Mike Yuan [Fri, 20 Sep 2024 19:25:48 +0000 (21:25 +0200)] 
basic/memory-util: make mempcpy_typesafe() take number of obj rather than raw size

Follow-up for eda6223942a172fa6777901cf5fbd47438f285ce

13 months agobasic: replace size_multiply_overflow() with MUL_ASSIGN_SAFE where applicable
Mike Yuan [Fri, 20 Sep 2024 19:39:15 +0000 (21:39 +0200)] 
basic: replace size_multiply_overflow() with MUL_ASSIGN_SAFE where applicable

13 months agobasic/macro: move DECIMAL_STR_FMT to shared/tests
Mike Yuan [Sun, 15 Sep 2024 13:00:06 +0000 (15:00 +0200)] 
basic/macro: move DECIMAL_STR_FMT to shared/tests

This shall never be used outside of test functions.

13 months agoAdd an extra debug log to dissect_image()
Daan De Meyer [Thu, 19 Sep 2024 12:53:53 +0000 (14:53 +0200)] 
Add an extra debug log to dissect_image()

13 months agomachine: fix bus method argument name: who -> whom
Yu Watanabe [Fri, 20 Sep 2024 18:49:18 +0000 (03:49 +0900)] 
machine: fix bus method argument name: who -> whom

Follow-up for cd2fb04960b8aa0b353d12005b8cfc3b9d2bcfee.

13 months agoverbs: use strv_find_closest() 34502/head
Yu Watanabe [Fri, 20 Sep 2024 00:31:46 +0000 (09:31 +0900)] 
verbs: use strv_find_closest()

This also makes the list of verbs is always shown on failure.

13 months agostrv: introduce strv_find_closest()
Yu Watanabe [Fri, 20 Sep 2024 00:09:28 +0000 (09:09 +0900)] 
strv: introduce strv_find_closest()

Follow-up for 1e1ac5d53b0f126b6c4419506c7c42b67c07537f.

13 months agoMerge pull request #34510 from keszybz/mkosi-version-checks
Yu Watanabe [Fri, 20 Sep 2024 18:16:25 +0000 (03:16 +0900)] 
Merge pull request #34510 from keszybz/mkosi-version-checks

Bump minimum required mkosi version

13 months agomkosi: bump mkosi MinimumVersion 34510/head
Zbigniew Jędrzejewski-Szmek [Fri, 20 Sep 2024 14:14:08 +0000 (16:14 +0200)] 
mkosi: bump mkosi MinimumVersion

dbff64ddf06f64ab94bd314df27d6c089b75de52 bumped the hash to
a commit after 24.3, so let's tell the users that 25~devel is
the minimum required.

13 months agomkosi: supress error messages from git
Zbigniew Jędrzejewski-Szmek [Fri, 20 Sep 2024 13:58:32 +0000 (15:58 +0200)] 
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.

13 months agosd-ipv4acd: fix assertion triggered when an ARP received in STARTED state
Yu Watanabe [Fri, 20 Sep 2024 00:58:12 +0000 (09:58 +0900)] 
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.

13 months agoNEWS: fix typos and remove backticks
Jörg Behrmann [Fri, 20 Sep 2024 10:05:45 +0000 (12:05 +0200)] 
NEWS: fix typos and remove backticks

13 months agoMerge pull request #34499 from YHNdnzj/sd-path-trivial-cleanup
Yu Watanabe [Thu, 19 Sep 2024 23:54:51 +0000 (08:54 +0900)] 
Merge pull request #34499 from YHNdnzj/sd-path-trivial-cleanup

sd-path: trivial cleanups

13 months agoMerge pull request #34496 from YHNdnzj/tmpfiles-neg-errno
Yu Watanabe [Thu, 19 Sep 2024 23:54:34 +0000 (08:54 +0900)] 
Merge pull request #34496 from YHNdnzj/tmpfiles-neg-errno

tmpfiles: ERRNO_IS_NOINFO -> _IS_NEG_, correct negative errno checks

13 months agofirstboot: add similar input suggestion
Michael Ferrari [Sat, 14 Sep 2024 00:01:52 +0000 (02:01 +0200)] 
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.

13 months agobasic/memory-util: introduce mempcpy_typesafe
Mike Yuan [Thu, 19 Sep 2024 21:08:42 +0000 (23:08 +0200)] 
basic/memory-util: introduce mempcpy_typesafe

13 months agoboot: use INC_SAFE where appropriate
Mike Yuan [Thu, 19 Sep 2024 14:07:01 +0000 (16:07 +0200)] 
boot: use INC_SAFE where appropriate

13 months agoMerge pull request #34480 from yuwata/test-seccomp-suppress-sync
Yu Watanabe [Thu, 19 Sep 2024 23:27:33 +0000 (08:27 +0900)] 
Merge pull request #34480 from yuwata/test-seccomp-suppress-sync

seccomp-util: pass negative fds as is to fsync() and friends

13 months agokernel-install: add uki.conf example
cvlc12 [Wed, 21 Aug 2024 16:29:06 +0000 (18:29 +0200)] 
kernel-install: add uki.conf example

13 months agosd-path: trivial cleanups for sd_path_lookup{,_strv}() 34499/head
Mike Yuan [Fri, 23 Aug 2024 16:01:19 +0000 (18:01 +0200)] 
sd-path: trivial cleanups for sd_path_lookup{,_strv}()

13 months agosd-path: modernize from_user_dir()
Mike Yuan [Fri, 23 Aug 2024 15:53:18 +0000 (17:53 +0200)] 
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.

13 months agotmpfiles: ERRNO_IS_NOINFO -> _IS_NEG_, correct negative errno checks 34496/head
Mike Yuan [Thu, 19 Sep 2024 11:38:47 +0000 (13:38 +0200)] 
tmpfiles: ERRNO_IS_NOINFO -> _IS_NEG_, correct negative errno checks

13 months agotmpfiles: use RET_GATHER more
Mike Yuan [Thu, 19 Sep 2024 11:37:48 +0000 (13:37 +0200)] 
tmpfiles: use RET_GATHER more

13 months agoman: update PCR and Secure Boot key names and paths
cvlc12 [Wed, 11 Sep 2024 18:18:26 +0000 (20:18 +0200)] 
man: update PCR and Secure Boot key names and paths

13 months agofirstboot: Prompt for keymap
Daan De Meyer [Thu, 19 Sep 2024 16:54:47 +0000 (18:54 +0200)] 
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.

13 months agohwdb: add keymaps for Acer Nitro 5 AN515-47 (#34493)
JoseskVolpe [Thu, 19 Sep 2024 19:36:44 +0000 (19:36 +0000)] 
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.

13 months agotest: add tests for seccomp_suppress_sync() 34480/head
Yu Watanabe [Wed, 18 Sep 2024 16:53:19 +0000 (01:53 +0900)] 
test: add tests for seccomp_suppress_sync()

13 months agoseccomp-util: pass negative fds as is to fsync() and friends
Yu Watanabe [Thu, 19 Sep 2024 18:52:19 +0000 (03:52 +0900)] 
seccomp-util: pass negative fds as is to fsync() and friends

Closes #34478.

Co-authored-by: Mike Yuan <me@yhndnzj.com>
13 months agoMerge pull request #34486 from DaanDeMeyer/test-process-util
Yu Watanabe [Thu, 19 Sep 2024 14:28:15 +0000 (23:28 +0900)] 
Merge pull request #34486 from DaanDeMeyer/test-process-util

test-process-util: Migrate to new assertion macros

13 months agoMerge pull request #34481 from yuwata/has-tpm2
Daan De Meyer [Thu, 19 Sep 2024 14:22:24 +0000 (16:22 +0200)] 
Merge pull request #34481 from yuwata/has-tpm2

tpm2-util: several cleanups for tpm2_support()

13 months agoMerge pull request #34483 from yuwata/network-conf-parser-neighbor-nexthop
Daan De Meyer [Thu, 19 Sep 2024 11:59:56 +0000 (13:59 +0200)] 
Merge pull request #34483 from yuwata/network-conf-parser-neighbor-nexthop

network: several cleanups for conf parsers

13 months agotest-process-util: Ignore EINVAL from setresuid() and setresgid() 34486/head
Daan De Meyer [Thu, 19 Sep 2024 10:21:55 +0000 (12:21 +0200)] 
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.

13 months agotest-process-util: Use FORK_REOPEN_LOG everywhere we close all fds
Daan De Meyer [Thu, 19 Sep 2024 10:04:34 +0000 (12:04 +0200)] 
test-process-util: Use FORK_REOPEN_LOG everywhere we close all fds

To make sure logging works in the child processes.

13 months agotest-process-util: Migrate to new assertion macros
Daan De Meyer [Thu, 19 Sep 2024 09:39:09 +0000 (11:39 +0200)] 
test-process-util: Migrate to new assertion macros

13 months agoman/systemd-analyze: mention required libraries for TPM2 support 34481/head
Yu Watanabe [Thu, 19 Sep 2024 10:21:05 +0000 (19:21 +0900)] 
man/systemd-analyze: mention required libraries for TPM2 support

Closes #34477.

13 months agotpm2-util: colorize output of 'systemd-analyze has-tpm2'
Yu Watanabe [Thu, 19 Sep 2024 10:11:23 +0000 (19:11 +0900)] 
tpm2-util: colorize output of 'systemd-analyze has-tpm2'

13 months agoshell-completion/analyze: add has-tpm2
Yu Watanabe [Wed, 18 Sep 2024 20:40:13 +0000 (05:40 +0900)] 
shell-completion/analyze: add has-tpm2

13 months agotpm2-util: update comment
Yu Watanabe [Thu, 19 Sep 2024 10:08:06 +0000 (19:08 +0900)] 
tpm2-util: update comment

has-tpm2 command is moved to systemd-analyze.

Follow-up for 58e359604ffdca12bb4d2c5807b96e070611c0f6.

13 months agotpm2-util: do not load tpm2 libraries when not interested in the existence of the...
Yu Watanabe [Wed, 18 Sep 2024 20:25:48 +0000 (05:25 +0900)] 
tpm2-util: do not load tpm2 libraries when not interested in the existence of the libraries

For example, 'bootctl status' only interested in if the efi has TPM2
support and a TPM2 driver is loaded. Hence, not necessary to load
libtss2.

13 months agotpm2-util: introduce tpm2_is_fully_supported()
Yu Watanabe [Wed, 18 Sep 2024 20:25:37 +0000 (05:25 +0900)] 
tpm2-util: introduce tpm2_is_fully_supported()

13 months agoMerge pull request #34479 from yuwata/sd-json-dispatch-field-table-static
Yu Watanabe [Thu, 19 Sep 2024 09:59:17 +0000 (18:59 +0900)] 
Merge pull request #34479 from yuwata/sd-json-dispatch-field-table-static

tree-wide: make sd_json_dispatch_field table static

13 months agonetwork/nexthop: introduce generic conf parser for [NextHop] section 34483/head
Yu Watanabe [Wed, 18 Sep 2024 19:49:30 +0000 (04:49 +0900)] 
network/nexthop: introduce generic conf parser for [NextHop] section

13 months agonetwork/nexthop: make conf parsers for Family= and Gateway= independent of each other
Yu Watanabe [Wed, 18 Sep 2024 19:28:32 +0000 (04:28 +0900)] 
network/nexthop: make conf parsers for Family= and Gateway= independent of each other

13 months agonetwork/nexthop: use log_section_warning() and friend
Yu Watanabe [Wed, 18 Sep 2024 19:19:38 +0000 (04:19 +0900)] 
network/nexthop: use log_section_warning() and friend

13 months agoAdd ASSERT_OK_ZERO_ERRNO() and ASSERT_OK_EQ_ERRNO()
Daan De Meyer [Thu, 19 Sep 2024 09:38:47 +0000 (11:38 +0200)] 
Add ASSERT_OK_ZERO_ERRNO() and ASSERT_OK_EQ_ERRNO()

13 months agoMerge pull request #34474 from DaanDeMeyer/user-group
Daan De Meyer [Thu, 19 Sep 2024 07:20:03 +0000 (09:20 +0200)] 
Merge pull request #34474 from DaanDeMeyer/user-group

Two integration test fixes

13 months agotest: Run TEST-74-AUX-UTILS in virtual machine 34474/head
Daan De Meyer [Wed, 18 Sep 2024 13:53:33 +0000 (15:53 +0200)] 
test: Run TEST-74-AUX-UTILS in virtual machine

Various tests skip themselves when running in a container so make
sure the test runs in a virtual machine so we get full coverage.

13 months agotest: create .netdev file at last
Yu Watanabe [Wed, 18 Sep 2024 23:43:51 +0000 (08:43 +0900)] 
test: create .netdev file at last

Previously, when the test ran on mkosi, then networkd was not masked, and
might be already started. In that case, the interface test2 would be created
soon after the .netdev file is created, and the .link file would not be
applied to the interface. Hence, the later test case for
'networkctl cat @test2:link' would fail.

This make networkd always started at the beginning of the test, and
.netdev file created after .link file is created. So, .link file is
always applied to the interface created by the .netdev file.

13 months agoman: fix typo
Yu Watanabe [Thu, 19 Sep 2024 00:18:44 +0000 (09:18 +0900)] 
man: fix typo

Follow-up for 8aee931e7ae1adb01eeac0e1e4c0aef6ed3969ec.

13 months agoefi: fix typo
Yu Watanabe [Thu, 19 Sep 2024 00:14:21 +0000 (09:14 +0900)] 
efi: fix typo

Follow-up for f4e081051d950a09ce9331ba55eaf604dac72652.

13 months agoci: Don't add testuser to wheel and systemd-journal groups
Daan De Meyer [Wed, 18 Sep 2024 13:38:43 +0000 (15:38 +0200)] 
ci: Don't add testuser to wheel and systemd-journal groups

This breaks TEST-74-AUX-UTILS when run in a VM as the user gets access
to journal files that the test expects it can't access.

13 months agotest: drop removed SCSI passthrough feature
Frantisek Sumsal [Wed, 18 Sep 2024 10:54:51 +0000 (12:54 +0200)] 
test: drop removed SCSI passthrough feature

This feature has been deprecated since QEMU 5.0 and finally removed in
QEMU 9.1 [0] which now causes issues when running the storage tests on
latest Arch:

------ testcase_long_sysfs_path: BEGIN ------
...
qemu-system-x86_64: -device virtio-blk-pci,drive=drive0,scsi=off,bus=pci_bridge25: Property 'virtio-blk-pci.scsi' not found
E: qemu failed with exit code 1

[0] https://github.com/qemu/qemu/commit/a271b8d7b2f39275a05e49deb7c8edc20b7a8279

13 months agonetwork/neighbor: use log_section_warning_errno()
Yu Watanabe [Wed, 18 Sep 2024 19:03:11 +0000 (04:03 +0900)] 
network/neighbor: use log_section_warning_errno()

13 months agonetwork/neighbor: introduce generic Neighbor section parser
Yu Watanabe [Wed, 18 Sep 2024 18:59:34 +0000 (03:59 +0900)] 
network/neighbor: introduce generic Neighbor section parser

13 months agonetwork/neighbor: use struct in_addr_data
Yu Watanabe [Wed, 18 Sep 2024 18:54:29 +0000 (03:54 +0900)] 
network/neighbor: use struct in_addr_data

13 months agoconf-parser: drop unnecessary temporary variable
Yu Watanabe [Wed, 18 Sep 2024 18:39:15 +0000 (03:39 +0900)] 
conf-parser: drop unnecessary temporary variable

13 months agoconf-parser: introduce config_parse_in_addr_data()
Yu Watanabe [Wed, 18 Sep 2024 18:35:03 +0000 (03:35 +0900)] 
conf-parser: introduce config_parse_in_addr_data()

13 months agotree-wide: drop unnecessary 'struct' 34479/head
Yu Watanabe [Wed, 18 Sep 2024 16:34:19 +0000 (01:34 +0900)] 
tree-wide: drop unnecessary 'struct'

13 months agonsresource: make sd_json_dispatch_field table static
Yu Watanabe [Wed, 18 Sep 2024 16:27:44 +0000 (01:27 +0900)] 
nsresource: make sd_json_dispatch_field table static

This also adds missing error check of sd_json_dispatch().

Follow-up for 54452c7b2aa03536331fc1ec04439c89d0320b57.

13 months agocreds-util: make sd_json_dispatch_field table static
Yu Watanabe [Wed, 18 Sep 2024 16:21:42 +0000 (01:21 +0900)] 
creds-util: make sd_json_dispatch_field table static

13 months agoresolve: make sd_json_dispatch_field table static
Yu Watanabe [Wed, 18 Sep 2024 16:03:09 +0000 (01:03 +0900)] 
resolve: make sd_json_dispatch_field table static

13 months agoresolvectl: make sd_json_dispatch_field table static
Yu Watanabe [Wed, 18 Sep 2024 15:56:53 +0000 (00:56 +0900)] 
resolvectl: make sd_json_dispatch_field table static

13 months agoupdatectl: make sd_json_dispatch_field table static
Yu Watanabe [Wed, 18 Sep 2024 16:16:53 +0000 (01:16 +0900)] 
updatectl: make sd_json_dispatch_field table static

This also fixes memory leak of Version object on failure.

Follow-up for ec15bb71c2ccd57702325a6e6626053a343f3511.

13 months agovarlinkctl: make sd_json_dispatch_field table static
Yu Watanabe [Wed, 18 Sep 2024 16:06:59 +0000 (01:06 +0900)] 
varlinkctl: make sd_json_dispatch_field table static

13 months agossh-generator: make sd_json_dispatch_field table static
Yu Watanabe [Wed, 18 Sep 2024 16:05:24 +0000 (01:05 +0900)] 
ssh-generator: make sd_json_dispatch_field table static

13 months agomachine: make sd_json_dispatch_field table static
Yu Watanabe [Wed, 18 Sep 2024 15:44:16 +0000 (00:44 +0900)] 
machine: make sd_json_dispatch_field table static

13 months agonsresourced: fix build without libbpf
Antonio Alvarez Feijoo [Wed, 18 Sep 2024 09:29:40 +0000 (11:29 +0200)] 
nsresourced: fix build without libbpf

```
In file included from ../src/nsresourced/nsresourced-manager.c:9:
../src/shared/bpf-link.h:5:10: fatal error: bpf/libbpf.h: No such file or directory
    5 | #include <bpf/libbpf.h>
      |          ^~~~~~~~~~~~~~
```

Follow-up for 46718d344fdaaaf523d854a0c728197e7406a55a

13 months agorepart: Drop unprivileged subvolumes logic for btrfs
Daan De Meyer [Wed, 18 Sep 2024 05:43:59 +0000 (07:43 +0200)] 
repart: Drop unprivileged subvolumes logic for btrfs

The functionality was explicitly not included in 6.11 for some
unknown reason so drop the logic from systemd-repart as well so
we don't release v257 with it included.

13 months agoman/repart: use <varname> instead of <variable>
Antonio Alvarez Feijoo [Wed, 18 Sep 2024 13:02:53 +0000 (15:02 +0200)] 
man/repart: use <varname> instead of <variable>

Otherwise, `<variable>$BOOT</variable>` is rendered:

```
[2548/2992] Generating man/repart.d.5 with a custom command
Element variable in namespace '' encountered in para, but no template matches.
Element variable in namespace '' encountered in para, but no template matches.
```

13 months agohwdb: Add accel orientation quirk for the IdeaPad Duet 3 10IGL5-LTE
Marius Hoch [Wed, 18 Sep 2024 10:07:00 +0000 (12:07 +0200)] 
hwdb: Add accel orientation quirk for the IdeaPad Duet 3 10IGL5-LTE

Signed-off-by: Marius Hoch <mail@mariushoch.de>
13 months agorepart: Support specifying multiple directories to ExcludeFiles=
Daan De Meyer [Mon, 16 Sep 2024 21:04:02 +0000 (23:04 +0200)] 
repart: Support specifying multiple directories to ExcludeFiles=

13 months agosystemd: rewatch pids under cgroup v1 when sigchld of processes more than main pid...
chenjiayi [Wed, 18 Sep 2024 03:12:34 +0000 (11:12 +0800)] 
systemd: rewatch pids under cgroup v1 when sigchld of processes more than main pid and control pid is captured

If `Delegate` is configured in service, cgroup agent will never send out
any datagram as .control subcgroup is generated. Thus systemd will watch
all processes on the cgroup hierarchy for SIGCHLD to deal with unreliable
cgroup notifications.

In this way, systemd should rewatch all processes when any SIGCHLD is
captured, more than the control pid or main pid.

13 months agoman: document ShowStatus and SetShowStatus()
Jason Yundt [Tue, 17 Sep 2024 18:00:26 +0000 (14:00 -0400)] 
man: document ShowStatus and SetShowStatus()

SetShowStatus() was added in order to fix #11447. Recently, I ran into
the exact same problem that OP was experiencing in #11447. I wasn’t able
to figure out how to deal with the problem until I found #11447, and it
took me a while to find #11447.

This commit takes what I learned from reading #11447 and adds it to the
documentation. Hopefully, this will make it easier for other people who
run into the same problem in the future.

13 months agoMerge pull request #34464 from yuwata/test-space-in-path
Daan De Meyer [Wed, 18 Sep 2024 06:50:38 +0000 (08:50 +0200)] 
Merge pull request #34464 from yuwata/test-space-in-path

test: allow to run tests under directory that contains spaces

13 months agotest: quote paths to executables 34464/head
Yu Watanabe [Tue, 17 Sep 2024 20:00:21 +0000 (05:00 +0900)] 
test: quote paths to executables

Fixes #34459.

13 months agokernel-install: unquote plugin paths in KERNEL_INSTALL_PLUGINS
Yu Watanabe [Tue, 17 Sep 2024 19:59:38 +0000 (04:59 +0900)] 
kernel-install: unquote plugin paths in KERNEL_INSTALL_PLUGINS

To support the case that paths to plugins contain spaces.

Prompted by #34459

13 months agoMerge pull request #34460 from yuwata/test-86-follow-ups
Yu Watanabe [Wed, 18 Sep 2024 00:31:17 +0000 (09:31 +0900)] 
Merge pull request #34460 from yuwata/test-86-follow-ups

test: follow-ups for TEST-86

13 months agotmpfiles.d: Remove purge flag from lines that don't support it
Daan De Meyer [Tue, 17 Sep 2024 19:46:04 +0000 (21:46 +0200)] 
tmpfiles.d: Remove purge flag from lines that don't support it

Fixes db15657dfb8100c3c6cd8cf60fa68521e019d47a

13 months agoukify: Remove debug log
Daan De Meyer [Tue, 17 Sep 2024 19:44:37 +0000 (21:44 +0200)] 
ukify: Remove debug log

This prints a python data structure which we shouldn't do during
normal operation.