summaryrefslogtreecommitdiffstats
path: root/LICENSE.LGPL2.1 (unfollow)
Commit message (Collapse)AuthorFilesLines
2024-09-19shell-completion/analyze: add has-tpm2Yu Watanabe2-1/+2
2024-09-19tpm2-util: update commentYu Watanabe1-2/+2
has-tpm2 command is moved to systemd-analyze. Follow-up for 58e359604ffdca12bb4d2c5807b96e070611c0f6.
2024-09-19tpm2-util: do not load tpm2 libraries when not interested in the existence ↵Yu Watanabe4-11/+15
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.
2024-09-19tpm2-util: introduce tpm2_is_fully_supported()Yu Watanabe6-5/+8
2024-09-19test: Run TEST-74-AUX-UTILS in virtual machineDaan De Meyer1-0/+1
Various tests skip themselves when running in a container so make sure the test runs in a virtual machine so we get full coverage.
2024-09-19test: create .netdev file at lastYu Watanabe1-13/+17
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.
2024-09-19man: fix typoYu Watanabe1-1/+1
Follow-up for 8aee931e7ae1adb01eeac0e1e4c0aef6ed3969ec.
2024-09-19efi: fix typoYu Watanabe1-2/+2
Follow-up for f4e081051d950a09ce9331ba55eaf604dac72652.
2024-09-19ci: Don't add testuser to wheel and systemd-journal groupsDaan De Meyer1-7/+0
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.
2024-09-19test: drop removed SCSI passthrough featureFrantisek Sumsal2-2/+2
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
2024-09-18tree-wide: drop unnecessary 'struct'Yu Watanabe3-4/+4
2024-09-18nsresource: make sd_json_dispatch_field table staticYu Watanabe1-11/+23
This also adds missing error check of sd_json_dispatch(). Follow-up for 54452c7b2aa03536331fc1ec04439c89d0320b57.
2024-09-18creds-util: make sd_json_dispatch_field table staticYu Watanabe1-16/+12
2024-09-18resolve: make sd_json_dispatch_field table staticYu Watanabe1-10/+15
2024-09-18resolvectl: make sd_json_dispatch_field table staticYu Watanabe1-29/+50
2024-09-18updatectl: make sd_json_dispatch_field table staticYu Watanabe1-27/+43
This also fixes memory leak of Version object on failure. Follow-up for ec15bb71c2ccd57702325a6e6626053a343f3511.
2024-09-18varlinkctl: make sd_json_dispatch_field table staticYu Watanabe1-3/+3
2024-09-18ssh-generator: make sd_json_dispatch_field table staticYu Watanabe1-3/+3
2024-09-18machine: make sd_json_dispatch_field table staticYu Watanabe1-6/+5
2024-09-18nsresourced: fix build without libbpfAntonio Alvarez Feijoo1-0/+2
``` 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
2024-09-18repart: Drop unprivileged subvolumes logic for btrfsDaan De Meyer1-58/+9
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.
2024-09-18man/repart: use <varname> instead of <variable>Antonio Alvarez Feijoo1-2/+2
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. ```
2024-09-18hwdb: Add accel orientation quirk for the IdeaPad Duet 3 10IGL5-LTEMarius Hoch1-1/+2
Signed-off-by: Marius Hoch <mail@mariushoch.de>
2024-09-18repart: Support specifying multiple directories to ExcludeFiles=Daan De Meyer2-18/+33
2024-09-18systemd: rewatch pids under cgroup v1 when sigchld of processes more than ↵chenjiayi1-1/+1
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.
2024-09-18man: document ShowStatus and SetShowStatus()Jason Yundt3-7/+40
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.
2024-09-18test: quote paths to executablesYu Watanabe5-45/+46
Fixes #34459.
2024-09-18kernel-install: unquote plugin paths in KERNEL_INSTALL_PLUGINSYu Watanabe2-4/+11
To support the case that paths to plugins contain spaces. Prompted by #34459
2024-09-17tmpfiles.d: Remove purge flag from lines that don't support itDaan De Meyer2-5/+5
Fixes db15657dfb8100c3c6cd8cf60fa68521e019d47a
2024-09-17ukify: Remove debug logDaan De Meyer1-3/+0
This prints a python data structure which we shouldn't do during normal operation.
2024-09-17network/dhcp4: use device_get_property_bool() at link_needs_dhcp_broadcast()Yu Watanabe1-12/+19
No functional change, just refactoring.
2024-09-17test: drop unused test.sh for TEST-86-MULTI-PROFILE-UKIYu Watanabe1-10/+0
The test cannot run with the bash test runner, as it requires python. Hence, test.sh is not necessary. Follow-up for a37640653cab108bb2cfdcba7e9422cced925e95.
2024-09-17test: minor coding style fixletsYu Watanabe1-5/+5
Follow-up for a37640653cab108bb2cfdcba7e9422cced925e95.
2024-09-17homed: wait for user input during firstbootMichael Ferrari4-16/+24
This mirrors the behavior of `systemd-firstboot` and allows bootup messages to settle down before user input is actually processed. See: https://github.com/systemd/systemd/issues/34448
2024-09-17conf-parser: use hashmap_ensure_put() at one more placeYu Watanabe1-5/+1
2024-09-17conf-parser: log errors in config_parse_many_files() and friendsYu Watanabe1-27/+22
Previously, if an file cannot be opened, e.g. due to its permission, config_parse_many() or so did not log the error even if CONFIG_PARSE_WARN flag is set. This makes all error paths in these functions are logged, and the log level is controlled by the flag. Prompted by #34436.
2024-09-17repart: Add tests for supplement partitionsAdrian Vovk1-0/+79
2024-09-17repart: Add SupplementFor= logicAdrian Vovk2-65/+431
This was designed to deal with $BOOT, as defined by the Boot Loader Specification, but it was made a generic mechanism because it is useful elsewhere too. See the updated man page for usage examples, motivation, and an explanation of how this works.
2024-09-17repart: Consider existing partitions when placingAdrian Vovk1-2/+10
Fixes an oversight in `context_allocate_partitions` that makes it succeed in cases where it should fail. Essentially, there was nothing actually enforcing SizeMinBytes= and PaddingMinBytes= for partitions that exist, only for new partitions. This behavior is inconsistent with the docs, which state that existing partitions will be grown to at least the specified minimum size, and that "If the backing device does not provide enough space to fulfill the constraints placing the partition will fail".
2024-09-17strv: Fixup STRV_FOREACH_PAIR macroAdrian Vovk1-1/+1
The macro didn't properly parenthesize a caller-controlled argument. For example: `STRV_FOREACH_PAIR(a, b, something ?: something_else)` would expand to `typeof(*something ?: something_else)`, which would cause compile failures
2024-09-17log: introduce log_oom_full()Yu Watanabe1-3/+4
2024-09-17network: log loaded .network and .netdev filesYu Watanabe2-1/+2
2024-09-17network: log when no matching .network file foundYu Watanabe1-4/+4
When an interface enters unmanaged state, there are two possibilities: - no matching .network file found, - found a matching .network with Unmanaged=yes. When a matching .network file is found, networkd logs the filename. Let's also log when no matching .network file is found. This also slightly adjust the log message when a matching .network file found. Closes #34436.
2024-09-17Use correct error code in log message in output_waiting_jobs (#34404)PavlNekrasov1-3/+2
The error code `r` from the read function is being logged, but the error code `rc` from the table data insertion function should be logged instead.
2024-09-17update TODOLennart Poettering1-0/+2
2024-09-17ci: add testcase for multi-profile UKIsLennart Poettering5-0/+108
This tests the whole shebang: 1. That ukify can generate them properly 2. That systemd-boot can dissect them properly 3. That systemd-stub can accept profile selection propery 4. That the profile information ends up in /run/systemd/stub/ properly 5. That systemd-measure correctly calculates the expected PCR 11 values for each profile and that we can unlock a public-key bound LUKS volume with it
2024-09-17docs: fix typo in filename: REATLIME -> REALTIMEYu Watanabe3-2/+2
2024-09-17test/repart: fix mkfs checkerYu Watanabe1-3/+6
Follow-up for 27cacec939a46f61706d7b48a51b6f5880be4662.
2024-09-17Fix generator loggingDaan De Meyer1-2/+4
log_setup() overrides the previously set log target again so we can't use it in log_setup_generator(). Follow-up for aa976d87889ae22b7347787a1ebd03a31dcc0a9e
2024-09-17CONTROL_GROUP_INTERFACE: fix link to systemd-run codeArian van Putten1-1/+1