summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* test: make sure pcrlock tests run headlessLennart Poettering2023-11-221-3/+3
| | | | | We want the tests to fail rather than hang if unlock via tpm doesn't work.
* Merge pull request #30128 from yuwata/network-rapid-commit-follow-upsLuca Boccassi2023-11-225-4/+19
|\ | | | | network/dhcp: several follow-ups for RapidCommit=
| * network/dhcp: disable RapidCommit= by default when AllowList=/DenyList= is ↵Yu Watanabe2023-11-215-4/+18
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | specified AllowList= and DenyList= filter only DHCPOFFER messages. So, if RapidCommit= is enabled, then networkd unconditionally accepts a rapid ACK message even if its sender is filtered out by the lists. As AllowList=/DenyList= implemented earlier than RapidCommit=, so enabling RapidCommit= unconditionally by default may break existing setups that use AllowList=/DenyList=. Let's disable RapidCommit= by default when AllowList=/DenyList= is enabled. Still the setting can be enabled by setting explicitly even AllowList=/DenyList= is also specified.
| * man: [DHCPv4] RapidCommit= is disabled when Anonymize=yesYu Watanabe2023-11-211-0/+1
| |
* | Update 60-autosuspend.hwdb (#30131)linuxlion2023-11-221-0/+10
| | | | | | | | | | * Update 60-autosuspend.hwdb Framework provides expansion cards. For the HDMI and DisplayPort, these benefit power management via enabling auto suspend.
* | test-network: add tests for [DHCPv4] AllowList= and DenyList=Yu Watanabe2023-11-214-3/+59
|/ | | | | | | | | | | We have not tested if the settings actually filter DHCP servers. Let's add a test case for the settings. Note, the .network file used here has been unused since 0730e3767d91e020985dc5c7c2178460f627581a. So, we can freely reuse it without changing other test cases. Closes #30107.
* systemctl: fix typoYu Watanabe2023-11-211-1/+1
| | | | Follow-up for f380473edfa899706d630bb64750ab50c5c04961.
* Fix references to ReadOnly=Nils K2023-11-211-2/+2
| | | PartitionReadOnly is not a valid property and ReadOnly was meant instead.
* tpm2-util: rename json field "tpm2-pcrlock" → "tpm2_pcrlock"Lennart Poettering2023-11-211-2/+2
| | | | | | | | | | | We generally want to avoid to include dashes in json field names. We historically made a mistake there which is hard to fix. But for new fields, let's get this right. We already got it right for a bunch of new fields, hence also make sure to use underscores rather dashes for new additions. This field was added post v254, and since we didn't release since then, let's just rename it.
* bsod: install the signal handler only just before we need itFrantisek Sumsal2023-11-212-1/+15
| | | | | | | Otherwise we might get stuck in sd_journal_wait(), since it handles EINTR internally. Resolves: #30084
* po: Translated using Weblate (Hebrew)Yaron Shahrabani2023-11-212-0/+1037
| | | | | | | | | | | | | | Currently translated at 37.0% (84 of 227 strings) po: Translated using Weblate (Hebrew) Currently translated at 15.8% (36 of 227 strings) po: Added translation using Weblate (Hebrew) Co-authored-by: Yaron Shahrabani <sh.yaron@gmail.com> Translate-URL: https://translate.fedoraproject.org/projects/systemd/master/he/ Translation: systemd/main
* kernel-install: do not resolve symlink in paths passed to pluginsYu Watanabe2023-11-211-27/+50
| | | | | | | | | | | When we resolve symlinks, paths (especially filenames) may be changed, but plugins may expect to see the kernel added under the name specified, not under the final name that the symlink chain resolves to. This makes symlinks in specified paths that passed to plugins are not resolved when neither --root nor --image specified. Fixes #29317.
* systemd.pc: Keep support for rootprefix and root_prefix (#30115)Arian van Putten2023-11-211-3/+8
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * systemd.pc: Keep support for rootprefix and root_prefix We dropped support for split-usr in https://github.com/systemd/systemd/commit/b0d3095fd6cc1791a38f57a1982116b4475244ba but kept the `rootprefix` variable in meson but ignore it to make sure we do not break downstream builds that depend on systemd. This is fine because we had logic in our meson.build that rootprefix and prefix need to be the same when split-usr=false. However we never had this logic in our systemd.pc.in file. This leads to a nasty breaking problem downstream. Many packages [0,1,2] (there might be more!) rely on overriding rootprefix or root_prefix when calling pkg-config to configure where to install systemd units. This is because before split-usr we installed units in rootprefix. Setting prefix on the pkg-config file didn't work. Even when split-usr=false people had to set rootprefix to install units in the right position. E.g. they have a line like: systemdunitdir = systemd.get_variable(pkgconfig: 'systemdsystemunitdir', pkgconfig_define: ['rootprefix', systemd_root_prefix]) With https://github.com/systemd/systemd/commit/b0d3095fd6cc1791a38f57a1982116b4475244ba landing This would mean all these downstream packages need to be patched to use `prefix` next to `rootprefix`. (Both need to be kept to keep backwards compat with using older versions of systemd). This puts a big burden on downstream packages. Instead we should not break the existing behaviour and keep the old behaviour of systemd.pc.in around. I've changed systemd.pc.in such that either setting prefix, rootprefix or root_prefix will all have the same effect. This way we do not break any downstream packages. - [0](https://github.com/fwupd/fwupd/blob/caa788b37ff34334d83debb047335fd12f3a7836/meson.build#L464) - [1](https://gitlab.freedesktop.org/mobile-broadband/ModemManager/-/blame/main/meson.build#L204) - [2](https://github.com/PipeWire/pipewire/blob/49cdb468c28ba366dbd08eef9cb6dbf2dea2a2e5/src/daemon/systemd/system/meson.build#L1)
* systemctl-show: only show available memory if it was artifically limitedFlorian Schmaus2023-11-211-3/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Systemd 255 changed the semantic of MemoryAvailable with 3565c709f587 ("cgroup: Fix MemoryAvailable= by considering physical memory"). If there is no artificial constraint, it will hold the amount of available physical memory, while it previously contained UINT64_MAX. While the change in MemoryAvailable's semantic is sensible, it causes `systemctl status` to always display the available physical memory. This creates a lot of noise, especially since systemd recently started to also show the "peak" memory. For example $ systemctl status foo … Memory: 3.9G (available: 21.2G peak: 5.4G) … However, while peak memory is a unit specific value, the available memory, when not derived from artificial memory limits, is a generic property that holds the same value for all units that are not under memory accounting constraints. Displaying it under those circumstances can therefore be considered being noisy. Before 3565c709f587 ("cgroup: Fix MemoryAvailable= by considering physical memory") "systemctl status" would only show the available memory if it was caused by a explicit memory limitation due to MemoryHigh or MemoryMax. This commit restores this behavior by supressing displaying the available memory if is is merely the available phyiscal memory. For example $ systemctl status foo … Memory: 3.9G (peak: 5.4G) … Fixes #30102.
* TODO: register more mime typesLennart Poettering2023-11-211-0/+6
|
* in-addr: improve log message for e.g. [DHCPv4] AllowList=Yu Watanabe2023-11-211-1/+2
| | | | Closes #30107.
* man: correct version tags in systemd-vmspawnLuca Boccassi2023-11-211-3/+3
| | | | | | We ended up merging some changes earlier Fixes https://github.com/systemd/systemd/issues/30091
* Merge pull request #30108 from mrc0mmand/packit-testing-farmLuca Boccassi2023-11-212-46/+107
|\ | | | | packit: run tests on Fedora Rawhide via Testing Farm
| * packit: run tests on Fedora Rawhide via Testing FarmFrantisek Sumsal2023-11-201-0/+8
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Let's utilize the full power of Packit and run some tests with the just built RPMs. This makes use of the Fedora infrastructure provided by the Testing Farm project [0][1]. With the current configuration, the `tests` job runs tests from the Fedora tests repository [2] in a very similar fashion like Ubuntu CI does, just with different metadata all around it. ATTOW there are only two tests, which are wrappers around unit tests and integration tests; the latter one currently runs only nspawn-based tests, since there's no KVM on the test VMs, and, for now, I'd like to see how well the infra is going to manage our upstream traffic and how stable the whole thing is end up being before increasing the work load. [0] https://docs.testing-farm.io/Testing%20Farm/0.1/index.html [1] https://packit.dev/docs/configuration/upstream/tests [2] https://src.fedoraproject.org/tests/systemd
| * test: don't use ddebug() before it's definedFrantisek Sumsal2023-11-201-1/+1
| | | | | | | | | | | | | | | | | | I'm pretty sure this is not the only case, but it's the one I recently noticed. Even though we call ddebug() from a function, that function is called before ddebug() is defined, resulting in the same issue as if we called just ddebug() in its place, i.e.: ..//test-functions: line 276: ddebug: command not found
| * test: move a couple of binaries to the BASICTOOLS arrayFrantisek Sumsal2023-11-201-14/+14
| | | | | | | | As they're not optional.
| * test: support NO_BUILD=yes on FedoraFrantisek Sumsal2023-11-201-6/+58
| |
| * test: make the LOOKS_LIKE_* variables proper booleansFrantisek Sumsal2023-11-201-25/+26
| |
* | Merge pull request #30074 from YHNdnzj/hibernate-unsupportedLuca Boccassi2023-11-201-4/+12
|\ \ | | | | | | hibernate-util: if asked to bypass space check, accept the case when we have no swap space at all
| * | hibernate-util: if asked to bypass space check, accept the case when weMike Yuan2023-11-181-2/+10
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | have no swap space at all But I shall still recommend https://chrisdown.name/2018/01/02/in-defence-of-swap.html to everyone ;-) Fixes #30083
| * | hibernate-util: report no available swap as no enough swap spaceMike Yuan2023-11-181-2/+2
| | | | | | | | | | | | | | | | | | | | | Otherwise, ENOENT or ENXIO may be directly returned as error through bus. Should help to generate clearer error message for #30083.
* | | libsystemd-network: introduce triple_timestamp_from_cmsg()Yu Watanabe2023-11-206-55/+34
| | | | | | | | | | | | | | | | | | Follow-up for 461ef3981f1a45150b6e2047bb3c789ac50ba3cf. This should fix compile error on x32 and riscv32.
* | | Merge pull request #30104 from poettering/pcrlock-empty-object-fixLuca Boccassi2023-11-202-1/+19
|\ \ \ | | | | | | | | pcrlock: fix for parsing corrupted userspace event log
| * | | test: add simple test case for invalid userspace log recordsLuca Boccassi2023-11-201-0/+9
| | | |
| * | | pcrlock: check for embedded NUL bytesLennart Poettering2023-11-201-0/+5
| | | |
| * | | pcrlock: make sure we don't choke on empty recordsLennart Poettering2023-11-201-1/+5
| | | | | | | | | | | | | | | | | | | | | | | | Follow-up for a43427013949 CID#1523832
* | | | Merge pull request #30095 from yuwata/kernel-install-exit-codeLuca Boccassi2023-11-202-9/+33
|\ \ \ \ | |/ / / |/| | | kernel-install: exit code
| * | | test: add test cases about plugin exit codeYu Watanabe2023-11-201-0/+25
| | | |
| * | | kernel-install: propagate failures in pluginsYu Watanabe2023-11-201-9/+8
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This fixes a regression introduced by 42551ea7e923bac5df12b20e3e735a487d38dcd5. In the shell script version, plugin failures are propagated to the caller. But after the commit, failures in plugins are logged, but never propagated as the exit code of the execution. Fixes #30087.
* | | | man: add note about journald forwarding being syncVito Caputo2023-11-201-0/+9
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This footgun should at least be documented, if there's not going to be a shortcut setting to establish the async `journalctl --follow` equivalent. Fixes: https://github.com/systemd/systemd/issues/2815
* | | | man: Fix example for systemd-runMartin Joerg2023-11-201-1/+1
| |_|/ |/| |
* | | test-condition: skip group test during Debian package buildLuca Boccassi2023-11-201-5/+8
|/ / | | | | | | | | | | | | The group names won't match in a package build chroot and the test might fail, skip it. https://buildd.debian.org/status/fetch.php?pkg=systemd&arch=hppa&ver=255%7Erc2-2&stamp=1700424353&raw=0
* | hwdb: add Predator PHN16-71onenowy2023-11-191-0/+6
| | | | | | enable microphone mute, predator sense button and fix the keyboard backlight up button changes display brightness.
* | Merge pull request #30070 from weblate/weblate-systemd-masterYu Watanabe2023-11-1838-10055/+3692
|\ \ | |/ |/| Translations update from Fedora Weblate
| * po: Translated using Weblate (Chinese (Simplified) (zh_CN))Charles Lee2023-11-181-6/+7
| | | | | | | | | | | | | | | | Currently translated at 100.0% (227 of 227 strings) Co-authored-by: Charles Lee <lchopn@gmail.com> Translate-URL: https://translate.fedoraproject.org/projects/systemd/master/zh_CN/ Translation: systemd/main
| * po: Update translation filesWeblate2023-11-1838-10031/+3666
| | | | | | | | | | | | | | | | Updated by "Update PO files to match POT (msgmerge)" hook in Weblate. Co-authored-by: Weblate <noreply@weblate.org> Translate-URL: https://translate.fedoraproject.org/projects/systemd/master/ Translation: systemd/main
| * po: Translated using Weblate (Chinese (Simplified) (zh_CN))Charles Lee2023-11-181-43/+44
|/ | | | | | | | Currently translated at 100.0% (227 of 227 strings) Co-authored-by: Charles Lee <lchopn@gmail.com> Translate-URL: https://translate.fedoraproject.org/projects/systemd/master/zh_CN/ Translation: systemd/main
* network/dhcp: actually refuse to assign DHCP option when an invalid string ↵Yu Watanabe2023-11-182-1/+8
| | | | | | is passed Prompted by #30029.
* Merge pull request #30078 from yuwata/test-setup-loggingLuca Boccassi2023-11-1839-7/+102
|\ | | | | test: call test_setup_logging()
| * fuzz: always call fuzz_setup_logging()Yu Watanabe2023-11-175-0/+10
| |
| * test: always call test_setup_logging()Yu Watanabe2023-11-1734-7/+92
|/
* mkosi ci: enable jammy-proposedLuca Boccassi2023-11-171-0/+5
| | | | | | This will bring in the fix for rawhide/tumbleweed builds (new libsolv capable of handling zstd). If all goes well it will migrate to jammy proper in a week and it can be reverted
* NEWS: drop duplicate 'of'Christian Hesse2023-11-171-1/+1
|
* Merge pull request #30064 from bluca/unbork_direct_ioLuca Boccassi2023-11-171-10/+35
|\ | | | | loop-util: restart loop_configure and reopen FD when O_DIRECT fails
| * loop-util: use the right error variable in log_debug_errno after fd_reopenLuca Boccassi2023-11-161-2/+2
| |