]> git.ipfire.org Git - thirdparty/systemd.git/log
thirdparty/systemd.git
8 weeks agotest: PR_DEATHSIG is reset after changing id/gid 38875/head
Luca Boccassi [Thu, 11 Sep 2025 12:16:26 +0000 (13:16 +0100)] 
test: PR_DEATHSIG is reset after changing id/gid

Child processes are left hanging on abort() as these child procs
freeze(), so test suites hang as well when test-namespace fails,
and processes are leaked.

From the docs:

The parent-death signal setting is also cleared upon changes to any of
the following thread credentials: effective user ID, effective group ID,
filesystem user ID, or filesystem group ID.

Set the deathsig again after changing id.

Follow-up for 2ade8218598afba0802b1007535b5c8deaeceb58

8 weeks agotest: do not leave process hanging in test-namespace
Luca Boccassi [Tue, 9 Sep 2025 23:32:02 +0000 (00:32 +0100)] 
test: do not leave process hanging in test-namespace

It is killed when the main test process exists, but still,
it will be left hanging while other test cases run, so it's
not very clean.

Follow-up for 8b5e3be88eeb1bdba50c87cb24d9e6b31e825f38

8 weeks agoukify: fix backend/option applicability docs
Christopher Head [Thu, 11 Sep 2025 05:40:46 +0000 (22:40 -0700)] 
ukify: fix backend/option applicability docs

The `SecureBootPrivateKey` and `SecureBootCertificate` options are used
by the `systemd-sbsign` backend, not just the `sbsign` backend.

8 weeks agotodo - main
Lennart Poettering [Wed, 10 Sep 2025 16:31:20 +0000 (18:31 +0200)] 
todo - main

8 weeks agohwdb: add MiriSDR MSi2500 devices
AsciiWolf [Thu, 11 Sep 2025 00:38:06 +0000 (02:38 +0200)] 
hwdb: add MiriSDR MSi2500 devices

8 weeks agohwdb: add more devices
AsciiWolf [Wed, 10 Sep 2025 22:58:46 +0000 (00:58 +0200)] 
hwdb: add more devices

- FUNcube Dongle Pro
- Great Scott Gadgets HackRF
- Microtelecom Perseus

8 weeks agohwdb: add Airspy devices
AsciiWolf [Tue, 9 Sep 2025 09:56:18 +0000 (11:56 +0200)] 
hwdb: add Airspy devices

8 weeks agoUpdate 60-sensor.hwdb - Add support for Lenovo Legion Go
DeKoile [Wed, 10 Sep 2025 18:22:36 +0000 (20:22 +0200)] 
Update 60-sensor.hwdb - Add support for Lenovo Legion Go

This adds support for the 3D Accelerometer of the Lenovo Legion Go

8 weeks agoTEST-64-UDEV-STORAGE: forcibly create new physical volume
Yu Watanabe [Wed, 10 Sep 2025 12:45:56 +0000 (21:45 +0900)] 
TEST-64-UDEV-STORAGE: forcibly create new physical volume

When the test VM is accidentally rebooted, there exists the previously
created volume, and the command fails with the following:
```
TEST-64-UDEV-STORAGE.sh[282]: + lvm pvcreate -y /dev/md/mdlvm
TEST-64-UDEV-STORAGE.sh[442]:   Can't initialize physical volume "/dev/md127" of volume group "mdlvm_vg" without -ff
TEST-64-UDEV-STORAGE.sh[442]:   /dev/md127: physical volume not initialized.
[FAILED] Failed to start TEST-64-UDEV-STORAGE-mdadm_lvm.service.
```
Let's ignore the existence of previous volume and forcibly create new one.

Workaround for issue #38240.

8 weeks agotest: propagate log env vars in run-unit-tests.py wrapper
Luca Boccassi [Wed, 10 Sep 2025 11:42:33 +0000 (12:42 +0100)] 
test: propagate log env vars in run-unit-tests.py wrapper

To make it easier to debug unit test failures

8 weeks agotest: exit from test child processes
Luca Boccassi [Tue, 9 Sep 2025 22:14:22 +0000 (23:14 +0100)] 
test: exit from test child processes

Otherwise the child processes will continue, return to the test
main function, and try to run other test cases themselves:

<...>
/* test_namespace_get_leader */
PID hierarchy: 553438 ← 553459 ← 553460
/* test_detach_mount_namespace_harder */
/* test_detach_mount_namespace_harder */
/* test_detach_mount_namespace_harder */

Follow-up for 0b8b13324e652cfc3b9f25dec0cf834705bbb8d0

8 weeks agoAdd Hantek DSO-6022 oscilloscopes and compatible devices
Martin Homuth-Rosemann [Tue, 9 Sep 2025 15:32:45 +0000 (17:32 +0200)] 
Add Hantek DSO-6022 oscilloscopes and compatible devices

Signed-off-by: Martin Homuth-Rosemann <Ho-Ro@users.noreply.github.com>
8 weeks agoRemove mention of inactive Tanglu distro from systemd-nspawn man page (#38873)
Raura [Tue, 9 Sep 2025 21:19:46 +0000 (00:19 +0300)] 
Remove mention of inactive Tanglu distro from systemd-nspawn man page (#38873)

Distribution seems inactive for a long time, and the mentioned website has disappeared.
https://distrowatch.com/table.php?distribution=tanglu

8 weeks agotest: remove extension from /var/lib/extensions at the end of the test
Luca Boccassi [Mon, 8 Sep 2025 12:38:30 +0000 (13:38 +0100)] 
test: remove extension from /var/lib/extensions at the end of the test

Otherwise it remains there, and another test case accidentally
uses it on refresh, which then makes another later test fail,
as the hierarchy is already merged:

[  203.969708] TEST-50-DISSECT.sh[890]: + systemd-sysext status
[  203.981831] TEST-50-DISSECT.sh[2795]: HIERARCHY EXTENSIONS SINCE
[  203.982196] TEST-50-DISSECT.sh[2795]: /opt      app0       Mon 2025-09-08 11:49:11 UTC
[  203.982551] TEST-50-DISSECT.sh[2795]: /usr      app0       Mon 2025-09-08 11:49:11 UTC

[  204.119772] TEST-50-DISSECT.sh[2799]: Hierarchy '/usr' is already merged.

Fixes https://github.com/systemd/systemd/issues/38282

8 weeks agobootctl: minor fixups (#38856)
Luca Boccassi [Mon, 8 Sep 2025 17:38:56 +0000 (18:38 +0100)] 
bootctl: minor fixups (#38856)

8 weeks agoman/loader.conf: specify that default entry is id...
Christian Hesse [Mon, 8 Sep 2025 07:45:42 +0000 (09:45 +0200)] 
man/loader.conf: specify that default entry is id...

... which is the file name including literal suffix `.conf`.

8 weeks agobash-completion/bootctl: add missing options and verb 38856/head
Antonio Alvarez Feijoo [Mon, 8 Sep 2025 10:37:26 +0000 (12:37 +0200)] 
bash-completion/bootctl: add missing options and verb

8 weeks agoman/bootctl: replace reference to --no-variables with --variables=no
Antonio Alvarez Feijoo [Mon, 8 Sep 2025 10:32:13 +0000 (12:32 +0200)] 
man/bootctl: replace reference to --no-variables with --variables=no

8 weeks agobootctl: clarify that --secure-boot-auto-enroll requires a boolean value
Antonio Alvarez Feijoo [Mon, 8 Sep 2025 10:31:27 +0000 (12:31 +0200)] 
bootctl: clarify that --secure-boot-auto-enroll requires a boolean value

8 weeks agobootctl: fix reference to non-existent option in error log
Antonio Alvarez Feijoo [Mon, 8 Sep 2025 10:30:35 +0000 (12:30 +0200)] 
bootctl: fix reference to non-existent option in error log

2 months agopo: Translated using Weblate (Khmer (Central))
kanitha chim [Sun, 7 Sep 2025 19:28:13 +0000 (19:28 +0000)] 
po: Translated using Weblate (Khmer (Central))

Currently translated at 57.5% (152 of 264 strings)

Co-authored-by: kanitha chim <kchim@redhat.com>
Translate-URL: https://translate.fedoraproject.org/projects/systemd/main/km/
Translation: systemd/main

2 months agocatalog: update Polish translation
Piotr Drąg [Sat, 6 Sep 2025 13:37:44 +0000 (15:37 +0200)] 
catalog: update Polish translation

Includes changes up to e4003f2d9cb93d09d99b87a3d2f68cb0889ecbe8

2 months agosd_bus_message_read.1: fix x/t being [iu]32 instead of [iu]64
наб [Sat, 6 Sep 2025 16:00:28 +0000 (18:00 +0200)] 
sd_bus_message_read.1: fix x/t being [iu]32 instead of [iu]64

2 months agomachine: restrict register-machine action again (#38835)
Luca Boccassi [Sat, 6 Sep 2025 10:04:49 +0000 (11:04 +0100)] 
machine: restrict register-machine action again (#38835)

Follow-up for adaff8eb35d9c471af81fddaa4403bc5843a256f

2 months agoNEWS: update register-machine paragraph 38835/head
Luca Boccassi [Fri, 5 Sep 2025 18:31:59 +0000 (19:31 +0100)] 
NEWS: update register-machine paragraph

2 months agomachine: restrict register-machine action again
Luca Boccassi [Fri, 5 Sep 2025 18:28:47 +0000 (19:28 +0100)] 
machine: restrict register-machine action again

Follow-up for adaff8eb35d9c471af81fddaa4403bc5843a256f

2 months agotest: use assertion macroses
Anton Tiurin [Thu, 4 Sep 2025 17:28:52 +0000 (10:28 -0700)] 
test: use assertion macroses

An assertion macros helps to debug failing tests as it reports
expression, arguments and errno (if applicable)

2 months agomeson: update version numbers for v258~rc4 v258-rc4
Luca Boccassi [Fri, 5 Sep 2025 10:34:36 +0000 (11:34 +0100)] 
meson: update version numbers for v258~rc4

2 months agoNEWS: update date
Luca Boccassi [Fri, 5 Sep 2025 10:34:07 +0000 (11:34 +0100)] 
NEWS: update date

2 months agoNEWS: note sd-stub incompatibility with older ukify
Luca Boccassi [Fri, 5 Sep 2025 10:33:51 +0000 (11:33 +0100)] 
NEWS: note sd-stub incompatibility with older ukify

2 months agotest: add more debug output
Luca Boccassi [Fri, 5 Sep 2025 09:03:32 +0000 (10:03 +0100)] 
test: add more debug output

The test occasionally fails with:

TEST-50-DISSECT.sh[3852]: Hierarchy '/usr' is already merged.

I can't really tell what is already merged as all previous ops
look as they are undone from the logs, so add status/list commands
just before the failing operation to hopefully give more info

For https://github.com/systemd/systemd/issues/38282

2 months agoUpdate hwdb and contributor list for v258-rc4 (#38828)
Daan De Meyer [Fri, 5 Sep 2025 09:19:31 +0000 (11:19 +0200)] 
Update hwdb and contributor list for v258-rc4 (#38828)

2 months agoRevert "terminal-util: explicitly reset cursor"
Zbigniew Jędrzejewski-Szmek [Fri, 5 Sep 2025 06:22:00 +0000 (08:22 +0200)] 
Revert "terminal-util: explicitly reset cursor"

This reverts commit b177095bfac9d04871762cff4febfca43e790529.

The original issue (https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=375275,
https://github.com/systemd/systemd/issues/22168) was about having a block
cursor instead of a box cursor after VM reset, which doesn't seem particularly
urgent. OTOH, the patch causes a minor regression, where the splash screen is
cleared immediately and replaced by a blinking cursor. With the patch, we are
trading one visual issue for another visual issue. The second is probably more
noticeable, since some poeple put in quite a lot of work to have pretty boots
where the firmware splash screen is displayed until the login prompt pops up.
Avoiding a regression is more important than fixing a minor long-standing
issue, so let's revert this.

Fixes https://github.com/systemd/systemd/issues/38752.

2 months agoClean up redirection ops in tests (#38827)
Luca Boccassi [Fri, 5 Sep 2025 08:41:53 +0000 (09:41 +0100)] 
Clean up redirection ops in tests (#38827)

2 months agoNEWS: update contributor list 38828/head
Zbigniew Jędrzejewski-Szmek [Fri, 5 Sep 2025 07:17:06 +0000 (09:17 +0200)] 
NEWS: update contributor list

2 months agohwdb: run "update-hwdb"
Zbigniew Jędrzejewski-Szmek [Fri, 5 Sep 2025 07:12:31 +0000 (09:12 +0200)] 
hwdb: run "update-hwdb"

As usual, just additions and corrections.

2 months agonspawn: Drop CAP_NET_BIND_SERVICE if in userns with identity mapping (#38723)
Daan De Meyer [Fri, 5 Sep 2025 07:08:44 +0000 (09:08 +0200)] 
nspawn: Drop CAP_NET_BIND_SERVICE if in userns with identity mapping (#38723)

Even if there's no uid shift, we still won't be able to bind to
privileged ports in the host network namespace, so drop the capability
regardless of whether we have a uid shift or not.

2 months agotests: drop pointless redirection of stderr from 'command -v' 38827/head
Zbigniew Jędrzejewski-Szmek [Fri, 5 Sep 2025 06:07:24 +0000 (08:07 +0200)] 
tests: drop pointless redirection of stderr from 'command -v'

The whole point of using 'command -v' is that it's a very portable
way to check if an executable exists. It doesn't print an error.

2 months agoTEST-75-RESOLVED: drop whitespace after shell redirection ops
Zbigniew Jędrzejewski-Szmek [Wed, 3 Sep 2025 10:00:21 +0000 (12:00 +0200)] 
TEST-75-RESOLVED: drop whitespace after shell redirection ops

2 months agotest: Add test for nspawn's handling of cap_net_bind_service 38723/head
Daan De Meyer [Thu, 4 Sep 2025 10:48:35 +0000 (12:48 +0200)] 
test: Add test for nspawn's handling of cap_net_bind_service

2 months agonspawn: Drop CAP_NET_BIND_SERVICE if in userns with identity mapping
DaanDeMeyer [Tue, 26 Aug 2025 10:35:58 +0000 (12:35 +0200)] 
nspawn: Drop CAP_NET_BIND_SERVICE if in userns with identity mapping

Even if there's no uid shift, we still won't be able to bind to privileged
ports in the host network namespace, so drop the capability regardless of
whether we have a uid shift or not.

2 months agoTEST-13-NSPAWN: Fix typo
Daan De Meyer [Thu, 4 Sep 2025 10:17:53 +0000 (12:17 +0200)] 
TEST-13-NSPAWN: Fix typo

2 months agomkosi: Install libcap-progs in main and minimal image
Daan De Meyer [Fri, 5 Sep 2025 06:23:58 +0000 (08:23 +0200)] 
mkosi: Install libcap-progs in main and minimal image

Let's make sure tools like capsh are available on OpenSUSE images
as well.

2 months agogpt-auto-generator: Pass verity settings to dissect_loop_device()
Daan De Meyer [Thu, 4 Sep 2025 12:02:09 +0000 (14:02 +0200)] 
gpt-auto-generator: Pass verity settings to dissect_loop_device()

The image policy might be configured to enforce verity protection on the
root or usr partitions. Currently, we get around that by ignoring the root
and usr partitions, given that by the time this code runs in the rootfs these
will have already been mounted.

However, we can't actually ignore the root partition, as we will enable
growfs and/or remounting the root partition rw based on the root partition
we find in the image.

Instead, let's just read any roothash= or usrhash= from the kernel command line
and pass in a populated verity settings struct into dissect_loop_device()
instead of NULL. If NULL is passed, any verity partitions in the image are
ignored. If we pass the default verity settings, the wrong verity partitions might
potentially be picked up, so we make sure to pass a fully populated instance. This
should be sufficient to satisfy any configured image policy verity protection checks.

Reverts 6d6538fb3f46b01dded23cc7eef5ed5ffe8b38e9

Fixes #38788

2 months agobootctl: make sure install verb also honors implied --graceful
Mike Yuan [Wed, 3 Sep 2025 14:44:32 +0000 (16:44 +0200)] 
bootctl: make sure install verb also honors implied --graceful

Follow-up for bcc73cafdbd9c3947c53e4cff3498f8a73e56d9d

2 months agolabeler: match src/bootctl/ for sd-boot/bootctl tag
Mike Yuan [Thu, 4 Sep 2025 15:28:02 +0000 (17:28 +0200)] 
labeler: match src/bootctl/ for sd-boot/bootctl tag

Follow-up for 0b676aab33be2fa8b092f1bf5f1f4e04f072eda4

2 months agomkosi conf opensuse: add systemd-journal-remote
val4oss [Wed, 3 Sep 2025 14:28:08 +0000 (16:28 +0200)] 
mkosi conf opensuse: add systemd-journal-remote

* Add the missing package for mkosi opensuse conf, otherwise TEST-04-JOURNAL
  fails with "/usr/lib/systemd/systemd-journal-remote: No such file or
  directory"

Signed-off-by: val4oss <github.widget541@passmail.net>
2 months agoSeveral fixlets for Varlink IDL (#38809)
Zbigniew Jędrzejewski-Szmek [Thu, 4 Sep 2025 12:41:29 +0000 (14:41 +0200)] 
Several fixlets for Varlink IDL (#38809)

2 months agoethtool-util: fix setting advertising link modes
Yu Watanabe [Tue, 2 Sep 2025 14:41:18 +0000 (23:41 +0900)] 
ethtool-util: fix setting advertising link modes

Fixes a regression caused by d307410327d14398cb60b72db9d0034b12950a72.

The link_mode_masks flex array in struct ethtool_link_settings contains
three packed arrays, and the length of each array is given by
link_mode_masks_nwords field:
```
        __u32   link_mode_masks[];
        /* layout of link_mode_masks fields:
         * __u32 map_supported[link_mode_masks_nwords];
         * __u32 map_advertising[link_mode_masks_nwords];
         * __u32 map_lp_advertising[link_mode_masks_nwords];
         */
```
Hence, we cannot use the received data as is through the union, but need
to shift the array to make each map accessible through the union.

2 months agotest: re-enable journal checks for varlink-idl and so on 38809/head
Yu Watanabe [Wed, 3 Sep 2025 21:01:52 +0000 (06:01 +0900)] 
test: re-enable journal checks for varlink-idl and so on

Previously, we have checked journal after TEST-XX-YYYYY.sh, but it was
forgotten when we switched to mkosi.
This re-enable the check but through ExecStartPost=, and drops unnecessary
workarounds for end.service. Then, this drops unnecessary end.service
and testsuite.target.

2 months agonetwork: remove unnecessary fd saved in fd-store
Yu Watanabe [Wed, 3 Sep 2025 23:40:48 +0000 (08:40 +0900)] 
network: remove unnecessary fd saved in fd-store

Fixes the following warning:
```
[  130.968170] H systemd-networkd[4288]: Restart operation initiated.
[  130.968265] H systemd-networkd[4288]: Serializing...
[  130.968274] H systemd-networkd[4288]: There is nothing to serialize.
(snip)
[  130.978756] H systemd[1]: Stopped systemd-networkd.service.
(snip)
[  130.991407] H systemd[1]: Starting systemd-networkd.service...
(snip)
[  131.077440] H systemd-networkd[4318]: Enumeration completed.
[  131.077471] H systemd-networkd[4318]: Deserializing...
[  131.077491] H systemd-networkd[4318]: Failed to parse json (line=0, column=0): No data available
[  131.077524] H systemd-networkd[4318]: Failed to deserialize the previous invocation, ignoring: No data available
```

2 months agotest: do not call GetUserRecord without "service" argument
Yu Watanabe [Wed, 3 Sep 2025 23:20:17 +0000 (08:20 +0900)] 
test: do not call GetUserRecord without "service" argument

Otherwise, following debugging log will be saved and the checker for
the varlink-idl log triggers failure:
```
systemd-userwork: processing[3110]: varlink-6-6: Parameters for method
  io.systemd.UserDatabase.GetUserRecord() didn't pass validation on field 'service': No anode
```

2 months agocore/varlink: do not call io.systemd.oom.ReportManagedOOMCGroups() with empty "cgroup...
Yu Watanabe [Thu, 4 Sep 2025 09:38:38 +0000 (18:38 +0900)] 
core/varlink: do not call io.systemd.oom.ReportManagedOOMCGroups() with empty "cgroups" parameter

Fixes the following varlink IDL validation error:
```
systemd-oomd[1687]: varlink-11-11: Parameters for method io.systemd.oom.ReportManagedOOMCGroups()
  didn't pass validation on field 'cgroups': No anode
```

2 months agocore/varlink: do not send unrealized cgroups to oomd
Yu Watanabe [Thu, 4 Sep 2025 09:49:21 +0000 (18:49 +0900)] 
core/varlink: do not send unrealized cgroups to oomd

Follow-ups for 23ac08115af83e3a0a937fa207fc52511aba2ffa.

Since the commit, the cgroup path is set only when it is realized.

Fixes the following varlink IDL validation failure:
```
systemd-oomd[1687]: Varlink-IDL: Mandatory field 'path' is null or missing on object, refusing.
```

2 months agohostname: add missing varlink IDL fields
Yu Watanabe [Wed, 3 Sep 2025 23:09:16 +0000 (08:09 +0900)] 
hostname: add missing varlink IDL fields

Follow-up for bc60034f43ad47a9f5f60d572cf47f062d0dd21f.

2 months agobootctl: add missing varlink IDL entries
Yu Watanabe [Thu, 4 Sep 2025 00:15:01 +0000 (09:15 +0900)] 
bootctl: add missing varlink IDL entries

Follow-up for f2751d757f76f6e50e452431815370a3a45fdfc0.

2 months agoCleanups for test/units directory (#38807)
Yu Watanabe [Thu, 4 Sep 2025 09:11:27 +0000 (18:11 +0900)] 
Cleanups for test/units directory (#38807)

2 months agoinstall: follow-up for initrd presets (#38790)
Yu Watanabe [Thu, 4 Sep 2025 09:03:21 +0000 (18:03 +0900)] 
install: follow-up for initrd presets (#38790)

Follow up for 4a8c395167c1631224c02d990c847955a2bf23b0.

2 months agorepart: add test case for btrfs specific options and MountPoint=, and update man...
Daan De Meyer [Thu, 4 Sep 2025 07:00:09 +0000 (09:00 +0200)] 
repart: add test case for btrfs specific options and MountPoint=, and update man page (#38756)

Closes #38749.

2 months agocore/transaction: fix issue in dropping unmergeable jobs (#38776)
Daan De Meyer [Thu, 4 Sep 2025 06:57:59 +0000 (08:57 +0200)] 
core/transaction: fix issue in dropping unmergeable jobs (#38776)

Fixes #38765.

2 months agoinstall: Fall back to system presets if there are no initrd presets 38790/head
Daan De Meyer [Tue, 2 Sep 2025 09:58:17 +0000 (11:58 +0200)] 
install: Fall back to system presets if there are no initrd presets

We might be operating with a newer systemctl on an image with older
systemd and thus without an initrd-preset directory. Before
4a8c395167c1631224c02d990c847955a2bf23b0, we would use the system
presets, let's make sure we keep doing that if we're operating on an
image without initrd presets.

Follow up for 4a8c395167c1631224c02d990c847955a2bf23b0.

2 months agoinstall: Coding style fixlet
Daan De Meyer [Tue, 2 Sep 2025 09:57:03 +0000 (11:57 +0200)] 
install: Coding style fixlet

2 months agocore: fix segfault by drop-in config for masked unit (#38810)
Daan De Meyer [Thu, 4 Sep 2025 06:41:26 +0000 (08:41 +0200)] 
core: fix segfault by drop-in config for masked unit (#38810)

2 months agoTEST-87-AUX-UTILS-VM: rotate journal at one more place
Yu Watanabe [Thu, 4 Sep 2025 05:19:40 +0000 (14:19 +0900)] 
TEST-87-AUX-UTILS-VM: rotate journal at one more place

Follow-ups for ab56a96194d102cb4ec279fc4eb181d16c1251ea.

Fixes the following failure:
```
TEST-87-AUX-UTILS-VM.sh[1196]: + systemd-run --user --wait --pipe -M testuser@.host -- coredumpctl
TEST-87-AUX-UTILS-VM.sh[1840]: Running as unit: run-p1840-i1841.service; invocation ID: 325a026377aa4cffb046c5a63a8906ab
TEST-87-AUX-UTILS-VM.sh[1853]: Hint: You are currently not seeing messages from other users and the system.
TEST-87-AUX-UTILS-VM.sh[1853]:       Users in groups 'adm', 'systemd-journal', 'wheel' can see all messages.
TEST-87-AUX-UTILS-VM.sh[1853]:       Pass -q to turn off this notice.
TEST-87-AUX-UTILS-VM.sh[1853]: Journal file /var/log/journal/6835d335b6684b6197bf071ad66f2678/user-4711.journal is truncated, ignoring file.
TEST-87-AUX-UTILS-VM.sh[1853]: No coredumps found.
TEST-87-AUX-UTILS-VM.sh[1840]:           Finished with result: exit-code
TEST-87-AUX-UTILS-VM.sh[1840]: Main processes terminated with: code=exited, status=1/FAILURE
TEST-87-AUX-UTILS-VM.sh[1840]:                Service runtime: 154ms
TEST-87-AUX-UTILS-VM.sh[1840]:              CPU time consumed: 78ms
TEST-87-AUX-UTILS-VM.sh[1840]:                    Memory peak: 21.9M (swap: 0B)
```

2 months agotest: move test units to their own directories 38807/head
Yu Watanabe [Wed, 3 Sep 2025 20:12:21 +0000 (05:12 +0900)] 
test: move test units to their own directories

This also add test cases for verifying loopy.service and friends,
which was added by e66047ff62c971eefa32b42373420d61e3f2a9c1 but never
used in integration tests.

2 months agotest: add comment about custom autorelabel.service
Yu Watanabe [Wed, 3 Sep 2025 21:17:22 +0000 (06:17 +0900)] 
test: add comment about custom autorelabel.service

Salvaged from ead814a0b0f64c572282b9e27a0a995893f10cf0.

2 months agoTEST-07-PID1: add test cases for mask/unmask unit 38810/head
Yu Watanabe [Wed, 3 Sep 2025 18:21:45 +0000 (03:21 +0900)] 
TEST-07-PID1: add test cases for mask/unmask unit

For issue #38802.

2 months agocore/unit: do not load drop-in configs for masked unit files
Yu Watanabe [Thu, 4 Sep 2025 01:13:17 +0000 (10:13 +0900)] 
core/unit: do not load drop-in configs for masked unit files

Otherwise, ExecXYZ= given by drop-ins may be added to a masked unit,
then commands may be unexpectedly executed. For example, if an ExecStop=
is set in a drop-in for a running unit, then 'systemctl mask --now' for
the unit try to invoke the command specified in ExecStop=.

Fixes #38802.

2 months agopo: Translated using Weblate (Finnish)
Ricky Tigg [Thu, 4 Sep 2025 00:52:21 +0000 (00:52 +0000)] 
po: Translated using Weblate (Finnish)

Currently translated at 100.0% (264 of 264 strings)

Co-authored-by: Ricky Tigg <ricky.tigg@gmail.com>
Translate-URL: https://translate.fedoraproject.org/projects/systemd/main/fi/
Translation: systemd/main

2 months agorepart: fix memleak 38756/head
Yu Watanabe [Wed, 3 Sep 2025 21:52:01 +0000 (06:52 +0900)] 
repart: fix memleak

Fixes a bug in 1a0541d44c78ced78a566051ec8f63417370aeaa (v256).

2 months agotest: add test case for issue #38765 38776/head
Yu Watanabe [Wed, 3 Sep 2025 15:49:34 +0000 (00:49 +0900)] 
test: add test case for issue #38765

2 months agocore/transaction: first drop unmergable jobs for anchor jobs
Yu Watanabe [Sun, 31 Aug 2025 20:08:45 +0000 (05:08 +0900)] 
core/transaction: first drop unmergable jobs for anchor jobs

As you can see, something spurious happens in the logs below.
```
initrd-switch-root.target: Trying to enqueue job initrd-switch-root.target/start/isolate
systemd-repart.service: Looking at job systemd-repart.service/stop conflicted_by=no
systemd-repart.service: Looking at job systemd-repart.service/start conflicted_by=no
systemd-repart.service: Fixing conflicting jobs systemd-repart.service/stop,systemd-repart.service/start by deleting job systemd-repart.service/stop
initrd-switch-root.target: Fixing conflicting jobs initrd-switch-root.target/stop,initrd-switch-root.target/start by deleting job initrd-switch-root.target/stop
systemd-repart.service: Deleting job systemd-repart.service/start as dependency of job initrd-switch-root.target/stop
```

The two conflicting jobs for systemd-repart.service are initially queued
as the following:
- initrd-switch-root.target has Wants=initrd-root-fs.target, and
  initrd-root-fs.target has Wants=systemd-repart.service (through symlink),
  hence starting initrd-switch-root.target tries to start
  systemd-repart.service,
- systemd-repart.service has Conflicts=initrd-switch-root.target, hence
  starting initrd-switch-root.target tries to stop
  systemd-repart.service.

As similar, interestingly(?) starting initrd-switch-root.target tries to
stop initrd-switch-root.target.

So, now there are at least two pairs of conflicting jobs:
- systemd-repart.service: start vs stop,
- initrd-switch-root.target: start vs stop.

As these jobs are induced by starting initrd-switch-root.target, of course
the most important one is the start job for initrd-switch-root.target.

Previously, as you can see in the logs at the beginning, even if
the start job for initrd-switch-root.target is important, we may first
try to resolve the conflict in systemd-repart.service, and may drop the
stop job for systemd-repart.service even if it is relevant to the start
job of initrd-switch-root.target.

This makes first we solve the pair of conflicting jobs for anchor task.
So the stop job for initrd-switch-root.target is dropped first, and the
induced start job for systemd-repart.service is automatically removed,
thus it is not necessary to solve the conflict in systemd-repart.service
anymore.

This is especially important for services that are enabled both in initrd
and after switching root. If a stop job for one of the service is
unexpectedly dropped during switching root, then the service is not stopped
before switching root, and will never start after that.

Fixes #38765.

2 months agoman/repart.d: mention each field of MountPoint= needs to be quoted when contains...
Yu Watanabe [Wed, 3 Sep 2025 16:42:48 +0000 (01:42 +0900)] 
man/repart.d: mention each field of MountPoint= needs to be quoted when contains colon

Closes #38749.

2 months agoTEST-58-REPART: add test case for btrfs specific options and MountPoint=
Yu Watanabe [Wed, 3 Sep 2025 10:30:34 +0000 (19:30 +0900)] 
TEST-58-REPART: add test case for btrfs specific options and MountPoint=

2 months agoTEST-58-REPART: make sector size test as a normal test case
Yu Watanabe [Wed, 3 Sep 2025 16:33:47 +0000 (01:33 +0900)] 
TEST-58-REPART: make sector size test as a normal test case

2 months agomkosi: update mkosi commit reference to d45142e329550abc9c6fc63c1f1f86e5286d3d67
Luca Boccassi [Wed, 3 Sep 2025 11:48:23 +0000 (12:48 +0100)] 
mkosi: update mkosi commit reference to d45142e329550abc9c6fc63c1f1f86e5286d3d67

786b8fe1c8 Return false from want_efi() for UKI outputs
fac86dbc93 mkosi-tools: add qemu/pipewire packages for gui profile for debian
3bb98f0e6e Add ncdu to tools tree packages
1332b32cb4 config: Fix type for devicetree setting
eff03569ee initrd: Add intel_pmc_ssram_telemetry module by default
e04305b030 Make Bootable= determine whether we build a UKI for esp images
7252146429 mkosi-obs: use --force also for unzstd
f58e31e228 mkosi-obs: do not fail if there are no bootloaders in the ESP
fac3bd4bf1 rhel: Look up entitlement keys and certificates in sandbox
da814d9634 opensuse: Add support for RISC-V for Tumbleweed
b1d66c88d0 fedora: Rework rawhide GPG key logic
b9360f25df Include {sys,conf}ext info in metadata file
94c6db6148 Set MakeInitrd=yes in documentation for building custom initrd
d134013ca8 mkosi-tools: add grub2-common to openSUSE tools tree
c97d345395 mkosi-tools: virtiofsd is only available on a subset of architectures on debian/ubuntu

2 months agoTranslations update from Fedora Weblate (#38792)
Zbigniew Jędrzejewski-Szmek [Wed, 3 Sep 2025 11:07:19 +0000 (13:07 +0200)] 
Translations update from Fedora Weblate (#38792)

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)

2 months agopo: Translated using Weblate (Russian) 38792/head
Sergey A [Wed, 3 Sep 2025 09:14:24 +0000 (09:14 +0000)] 
po: Translated using Weblate (Russian)

Currently translated at 100.0% (264 of 264 strings)

Co-authored-by: Sergey A <Ser82-png@yandex.ru>
Translate-URL: https://translate.fedoraproject.org/projects/systemd/main/ru/
Translation: systemd/main

2 months agopo: Added translation using Weblate (Cornish)
Jasmine Andrever-Wright [Wed, 3 Sep 2025 09:14:24 +0000 (09:14 +0000)] 
po: Added translation using Weblate (Cornish)

Co-authored-by: Jasmine Andrever-Wright <cam.jpw@gmail.com>
2 months agoman: add docs for ssh.ephemeral-authorized_keys-all
Allison Karlitskaya [Wed, 3 Sep 2025 08:29:39 +0000 (10:29 +0200)] 
man: add docs for ssh.ephemeral-authorized_keys-all

This was added in 071155a1fbac ("ssh-generator: support
ssh.ephemeral-key.all-users") without corresponding documentation.  Add
the missing docs now.

2 months agomkosi: Relax separate branch check in mkosi.sync
Daan De Meyer [Wed, 3 Sep 2025 09:25:57 +0000 (11:25 +0200)] 
mkosi: Relax separate branch check in mkosi.sync

There's no guarantee that $GIT_BRANCH is always the same across
stable release branches and main. But we still need to make sure
we switch commits if we're switching between main and release branches.

To make this work, let's not check if the current HEAD commit is an
ancestor of the currently configured origin branch. Instead, let's
check if any of the origin branches contains the current HEAD commit.
This still makes sure that we won't switch commits if we're working
on a local branch while making sure that we do switch commits if we're
switching between main and stable release branches with different
git branches configured for the packaging repo checkout.

2 months agopcrlock: use WRITE_STRING_FILE_LABEL
Yu Watanabe [Tue, 26 Aug 2025 16:31:36 +0000 (01:31 +0900)] 
pcrlock: use WRITE_STRING_FILE_LABEL

Fixes #38727.

2 months agoTEST-45-TIMEDATE: rotate journal before parsing log message
Yu Watanabe [Mon, 1 Sep 2025 23:34:26 +0000 (08:34 +0900)] 
TEST-45-TIMEDATE: rotate journal before parsing log message

Similar to 04ade57a4233750f45fbc5fa2b5f52adfb435de5.

Fixes the following failure (long line is wrapped):
```
TEST-45-TIMEDATE.sh[234]: + journalctl --sync
TEST-45-TIMEDATE.sh[234]: + for _ in {0..9}
TEST-45-TIMEDATE.sh[234]: + journalctl -q -n 1 '--since=2025-09-01 17:09:25.442936' -p info -t busctl --grep .
TEST-45-TIMEDATE.sh[363]: Sep 01 17:09:25 H busctl[351]: {"type":"signal","endian":"l","flags":1,"version":1,
  "cookie":67,"timestamp-realtime":1756746565578529,"sender":":1.11","path":"/org/freedesktop/timedate1",
  "interface":"org.freedesktop.DBus.Properties","member":"PropertiesChanged","payload":{"type":"sa{sv}as",
    "data":["org.freedesktop.timedate1",{"NTP":{"type":"b","data":false}},[]]}}
TEST-45-TIMEDATE.sh[366]: ++ journalctl -q -n 1 '--since=2025-09-01 17:09:25.442936' -p info -t busctl -o cat
TEST-45-TIMEDATE.sh[367]: ++ jq -r '.payload.data[1].NTP.data'
TEST-45-TIMEDATE.sh[366]: Journal file /run/log/journal/07946b7846564ac0ad1c86e8cabed329/system.journal is truncated, ignoring file.
TEST-45-TIMEDATE.sh[234]: + [[ '' == \f\a\l\s\e ]]
```

2 months agoNEWS: mention ACLs by "uaccess" is always set by udevd
Yu Watanabe [Mon, 1 Sep 2025 03:07:34 +0000 (12:07 +0900)] 
NEWS: mention ACLs by "uaccess" is always set by udevd

Follow-up for c960ca2be1cfd183675df581f049a0c022c1c802 (#36444).
Prompted by https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1112660.

2 months agopo: Translated using Weblate (Russian)
Sergey A [Sun, 31 Aug 2025 14:53:40 +0000 (14:53 +0000)] 
po: Translated using Weblate (Russian)

Currently translated at 99.2% (262 of 264 strings)

Co-authored-by: Sergey A <Ser82-png@yandex.ru>
Translate-URL: https://translate.fedoraproject.org/projects/systemd/main/ru/
Translation: systemd/main

2 months agoman: loader.conf(5): document auto-reboot/auto-poweroff
Felix Pehla [Sat, 30 Aug 2025 14:09:53 +0000 (16:09 +0200)] 
man: loader.conf(5): document auto-reboot/auto-poweroff

These options were added in v255 with commit
cb341090d061084accc9a45ec4b1d258954adba2, but were not documented as
standalone options in loader.conf. See #29440 for more information.

2 months agoNEWS: Extend note on /run/lock to recommend locking devices directly
Josh Triplett [Sat, 30 Aug 2025 00:33:59 +0000 (17:33 -0700)] 
NEWS: Extend note on /run/lock to recommend locking devices directly

2 months agoNEWS: add note about removal of /run/lock/ from our tmpfiles.d
Luca Boccassi [Fri, 29 Aug 2025 13:53:57 +0000 (14:53 +0100)] 
NEWS: add note about removal of /run/lock/ from our tmpfiles.d

2 months agounits: portabled requires /dev/loop-control
Yu Watanabe [Thu, 28 Aug 2025 20:34:32 +0000 (05:34 +0900)] 
units: portabled requires /dev/loop-control

Fixes #38692.

2 months agohomed: AddSigningKey: only feed data to OpenSSL _after_ Polkit auth
Matthias Gerstner [Wed, 27 Aug 2025 08:18:41 +0000 (10:18 +0200)] 
homed: AddSigningKey: only feed data to OpenSSL _after_ Polkit auth

As a hardening measure it makes sense not to process potentially crafted
data in `openssl_pubkey_to_pem()` before we know that the caller is
authorized to perform the action.

2 months agotree-wide: some trivial fixes around `table_*()` result check (#38753)
Yu Watanabe [Thu, 28 Aug 2025 20:23:26 +0000 (05:23 +0900)] 
tree-wide: some trivial fixes around `table_*()` result check (#38753)

2 months agotree-wide: avoid logging 2 error messages if table_print_with_pager() fails 38753/head
Antonio Alvarez Feijoo [Thu, 28 Aug 2025 12:09:50 +0000 (14:09 +0200)] 
tree-wide: avoid logging 2 error messages if table_print_with_pager() fails

`table_print_with_pager()` already calls `table_log_print_error()` internally if
there is an error.

2 months agoresolvectl: add missing error check
Antonio Alvarez Feijoo [Thu, 28 Aug 2025 12:09:14 +0000 (14:09 +0200)] 
resolvectl: add missing error check

Follow-up for 45817e9245d48ad8807de2b1604bc64b9dd39a1d

2 months agoanalyze: fix unit-shell/unit-gdb when target unit has exited
Luca Boccassi [Wed, 27 Aug 2025 19:16:11 +0000 (20:16 +0100)] 
analyze: fix unit-shell/unit-gdb when target unit has exited

Follow-up for 9a08000d186396bc8bcb8fe057720417543c3bf0
Follow-up for ad6e02e7b42db35178305614e643be7a62568d87

2 months agotest: ensure that reload updates DNSSEC and DNSOverTLS on link scopes
Nick Rosbrook [Fri, 22 Aug 2025 17:36:48 +0000 (13:36 -0400)] 
test: ensure that reload updates DNSSEC and DNSOverTLS on link scopes

2 months agotest: use numeric prefixes in resolved.conf.d overrides
Nick Rosbrook [Fri, 22 Aug 2025 19:00:38 +0000 (15:00 -0400)] 
test: use numeric prefixes in resolved.conf.d overrides

There are a lot of resolved.conf.d drop-ins used in these tests. Use
proper numeric prefixes, especially to avoid confusion with sorting
relative to test.conf.

Make the test base config 10-test.conf, and use 90-*.conf elsewhere.

2 months agoresolve: re-create link unicast scopes on reload
Nick Rosbrook [Fri, 22 Aug 2025 14:46:50 +0000 (10:46 -0400)] 
resolve: re-create link unicast scopes on reload

On reload, resolved does not apply new DNSSEC= (or DNSOverTLS=) settings
on links, because the link unicast scopes are not re-created. However,
the servers and link states are updated correctly, so resolvectl and link
state files do show the new setting, leading users to believe the change
took effect immediately, the same way `resolvectl dnssec` does.

Fix this by freeing all of the link unicast scopes during reload, so
that they are re-created with the new settings in link_allocate_scopes().

2 months agoresolve: include DNSSEC and DNSOverTLS modes in dumps
Nick Rosbrook [Fri, 22 Aug 2025 15:34:17 +0000 (11:34 -0400)] 
resolve: include DNSSEC and DNSOverTLS modes in dumps

This is useful for testing and debugging. E.g., one can examine the
active DNSSEC mode of the scope using:

$ resolvectl show-cache

2 months agoshell-completion: support -i option for journalctl
Yu Watanabe [Tue, 26 Aug 2025 17:39:00 +0000 (02:39 +0900)] 
shell-completion: support -i option for journalctl

Follow-up for dde54b8a8578cecb3ce90e56aeeaf749dd9e1058.

2 months agoupdate TODO
Lennart Poettering [Tue, 26 Aug 2025 15:34:56 +0000 (17:34 +0200)] 
update TODO