Commit Graph

83530 Commits

Author SHA1 Message Date
Zbigniew Jędrzejewski-Szmek
8a9ab3dbbc generators: when creating symlinks, silently ignore existing links in one more place
After the update to systemd 257.7 in Fedora, there are reports that we fail to
create a symlink:
  systemd-gpt-auto-generator[585]: Failed to create symlink /run/systemd/generator/local-fs.target.wants/systemd-fsck-root.service: File exists
  (sd-exec-[574]: /usr/lib/systemd/system-generators/systemd-gpt-auto-generator failed with exit status 1.

I guess that some other generator created the symlink. We silently ignore
EEXIST in similar codepaths, so add that in one more place. (The target of the
symlink doesn't really matter. The name of the link matters. So something like
symlink_idempotent would not be better. For example, a different generator
might use a slightly different target path, and symlink_idempotent would be too
strict.)
2025-09-15 11:11:01 +02:00
AsciiWolf
bb4c00001d hwdb: add HydraSDR RFOne 2025-09-15 13:22:53 +09:00
anthisfan
778e95420a systemd-path: return accumulated error instead of last result
Because it returns the result of the final sd_path_lookup() call rather than the return value of RET_GATHER,
it appears that it may return success even if an error occurs during processing.

With this patch, errors encountered during the loop will be properly tallied and returned, and failures will not be silently ignored.

Signed-off-by: anthisfan <gtpgx305@gmail.com>
2025-09-14 22:18:19 +02:00
Luca Boccassi
a0203ac14c test: ensure journal dir is writable by container in TEST-13-NSPAWN
The systemd-journal group is not mapped, so ensure the test directory
is owned by root:root so that the mapping works.

Follow-up for 88fce09026
2025-09-14 13:23:17 +01:00
Luca Boccassi
e3f4aa4a75 shell-completion: add missing arguments for journalctl 2025-09-14 09:42:36 +01:00
Yu Watanabe
6c32948b25 dissect: include unistd.h
This is required by e.g. geteuid(), for the case when unistd.h is
indirectly included by other headers.

Continuation of 4f18ff2e29.
2025-09-14 09:47:30 +02:00
Daan De Meyer
5bf7438ff0 TEST-55-OOMD: Verify that ExecStopPost= runs on oom-kill 2025-09-13 00:20:56 +01:00
Luca Boccassi
f82d80da06 ansi-color: fix stack overflow with debug level and invalid SYSTEMD_COLORS env var
When SYSTEMD_COLORS is invalid, parse_systemd_colors() logs about it.
Logging helpers then call into parse_systemd_colors() to pretty-print
the log message, which then fails, so it logs about the failure,
rinse and repeat until segfault.

Follow-up for c8210d98a4
2025-09-12 10:58:26 +01:00
val4oss
6becea2859 mkosi conf opensuse: add libtss2-tcti-device0 dep
* Add the TPM recommended package for opensuse mkosi conf to fix the
  TEST-70-TPM failure.

Signed-off-by: val4oss <github.widget541@passmail.net>
2025-09-12 10:34:02 +01:00
Luca Boccassi
b7d3b45017 mkosi: pass through more toolchain flags 2025-09-12 10:31:32 +01:00
AsciiWolf
56347fe7f3 hwdb: add LimeSDR XTRX devices 2025-09-12 06:46:55 +09:00
AsciiWolf
69442f94b5 hwdb: add missing Ettus Research B200 rule
https://github.com/EttusResearch/uhd/blob/master/host/utils/uhd-usrp.rules#L18

Not sure why it was missing.
2025-09-11 18:41:26 +01:00
Luca Boccassi
f9bed8d52f test-namespace: more fixes (#38875) 2025-09-11 15:32:24 +01:00
Luca Boccassi
15818468f8 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 2ade821859
2025-09-11 13:37:34 +01:00
Luca Boccassi
aece4b0381 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 8b5e3be88e
2025-09-11 13:37:29 +01:00
Christopher Head
fafe447dcd ukify: fix backend/option applicability docs
The `SecureBootPrivateKey` and `SecureBootCertificate` options are used
by the `systemd-sbsign` backend, not just the `sbsign` backend.
2025-09-11 12:07:03 +01:00
Lennart Poettering
6b071ab14a todo - main 2025-09-11 11:30:52 +02:00
AsciiWolf
11c58b6774 hwdb: add MiriSDR MSi2500 devices 2025-09-11 09:58:49 +09:00
AsciiWolf
c61bdd79ef hwdb: add more devices
- FUNcube Dongle Pro
- Great Scott Gadgets HackRF
- Microtelecom Perseus
2025-09-11 08:44:48 +09:00
AsciiWolf
8fadcd15d3 hwdb: add Airspy devices 2025-09-11 07:27:07 +09:00
DeKoile
63254ed696 Update 60-sensor.hwdb - Add support for Lenovo Legion Go
This adds support for the 3D Accelerometer of the Lenovo Legion Go
2025-09-10 23:20:56 +01:00
Yu Watanabe
8685f8edd1 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.
2025-09-11 00:06:33 +09:00
Luca Boccassi
994af53395 test: propagate log env vars in run-unit-tests.py wrapper
To make it easier to debug unit test failures
2025-09-10 14:34:01 +01:00
Luca Boccassi
e52a1acb81 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 0b8b13324e
2025-09-10 00:27:14 +01:00
Martin Homuth-Rosemann
3efabf88cd Add Hantek DSO-6022 oscilloscopes and compatible devices
Signed-off-by: Martin Homuth-Rosemann <Ho-Ro@users.noreply.github.com>
2025-09-09 23:19:32 +01:00
Raura
d18a6c861d 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
2025-09-09 22:19:46 +01:00
Luca Boccassi
9cc9e14ed4 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
2025-09-09 08:52:37 +02:00
Luca Boccassi
cb90434c2a bootctl: minor fixups (#38856) 2025-09-08 18:38:56 +01:00
Christian Hesse
e3b1743596 man/loader.conf: specify that default entry is id...
... which is the file name including literal suffix `.conf`.
2025-09-08 12:00:00 +01:00
Antonio Alvarez Feijoo
559da4a509 bash-completion/bootctl: add missing options and verb 2025-09-08 12:37:26 +02:00
Antonio Alvarez Feijoo
aa089759ad man/bootctl: replace reference to --no-variables with --variables=no 2025-09-08 12:32:13 +02:00
Antonio Alvarez Feijoo
5a70aa5315 bootctl: clarify that --secure-boot-auto-enroll requires a boolean value 2025-09-08 12:31:27 +02:00
Antonio Alvarez Feijoo
992716c9ab bootctl: fix reference to non-existent option in error log 2025-09-08 12:30:35 +02:00
kanitha chim
9ce0fbb937 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
2025-09-08 08:14:36 +09:00
Piotr Drąg
1ad66cfab5 catalog: update Polish translation
Includes changes up to e4003f2d9c
2025-09-07 12:52:59 +09:00
наб
f1fdfabcde sd_bus_message_read.1: fix x/t being [iu]32 instead of [iu]64 2025-09-07 12:50:00 +09:00
Luca Boccassi
55aa41a430 machine: restrict register-machine action again (#38835)
Follow-up for adaff8eb35
2025-09-06 11:04:49 +01:00
Luca Boccassi
2b3c02380c NEWS: update register-machine paragraph 2025-09-05 19:31:59 +01:00
Luca Boccassi
65badde82e machine: restrict register-machine action again
Follow-up for adaff8eb35
2025-09-05 19:29:09 +01:00
Anton Tiurin
9709deba91 test: use assertion macroses
An assertion macros helps to debug failing tests as it reports
expression, arguments and errno (if applicable)
2025-09-05 15:14:49 +02:00
Luca Boccassi
e418ba4074 meson: update version numbers for v258~rc4 2025-09-05 11:34:36 +01:00
Luca Boccassi
edf214d186 NEWS: update date 2025-09-05 11:34:07 +01:00
Luca Boccassi
67b10eb76b NEWS: note sd-stub incompatibility with older ukify 2025-09-05 11:33:51 +01:00
Luca Boccassi
28edbbdc1b 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
2025-09-05 12:13:25 +02:00
Daan De Meyer
aa4b1a97dc Update hwdb and contributor list for v258-rc4 (#38828) 2025-09-05 11:19:31 +02:00
Zbigniew Jędrzejewski-Szmek
711b5e805d Revert "terminal-util: explicitly reset cursor"
This reverts commit b177095bfa.

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.
2025-09-05 11:18:51 +02:00
Luca Boccassi
7b53fd6215 Clean up redirection ops in tests (#38827) 2025-09-05 09:41:53 +01:00
Zbigniew Jędrzejewski-Szmek
311cc3c78e NEWS: update contributor list 2025-09-05 09:18:19 +02:00
Zbigniew Jędrzejewski-Szmek
438ab26379 hwdb: run "update-hwdb"
As usual, just additions and corrections.
2025-09-05 09:18:06 +02:00
Daan De Meyer
f743084035 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.
2025-09-05 09:08:44 +02:00