]> git.ipfire.org Git - thirdparty/systemd.git/log
thirdparty/systemd.git
21 months agotest-network: add/update module check
Yu Watanabe [Tue, 16 Aug 2022 17:43:16 +0000 (02:43 +0900)] 
test-network: add/update module check

For https://github.com/systemd/systemd-centos-ci/pull/517.

21 months agorun: simplification
Zbigniew Jędrzejewski-Szmek [Tue, 16 Aug 2022 16:41:00 +0000 (18:41 +0200)] 
run: simplification

21 months agomanager: allow assignment of properties on target/swap/device units
Zbigniew Jędrzejewski-Szmek [Tue, 16 Aug 2022 16:07:30 +0000 (18:07 +0200)] 
manager: allow assignment of properties on target/swap/device units

E.g. Documentation or Markers could apply to any unit type. This already worked
partially, because a direct dbus call could be made:

After rebuild with the patch, but before the manager has been restarted:
$ build/systemctl --user set-property dev-zram0.swap Markers=+needs-restart
$ build/systemctl --user show -p Markers dev-zram0.swap
Markers=needs-restart

I noticed that that the rpm unit restart helper was throwing errors for target
units. We should just let the Markers be set for those too, even if it doesn't
do anything in the end. This way we don't need to special-case by unit type.

21 months agoMerge pull request #24301 from yuwata/network-tuntap
Luca Boccassi [Tue, 16 Aug 2022 22:06:16 +0000 (23:06 +0100)] 
Merge pull request #24301 from yuwata/network-tuntap

network/tuntap: introduce KeepFileDescriptor= setting

21 months agotest-network: add tests for MTUBytes= for bridge master and ports
Yu Watanabe [Tue, 16 Aug 2022 16:59:56 +0000 (01:59 +0900)] 
test-network: add tests for MTUBytes= for bridge master and ports

Prompted by #24311.

21 months agoman: Correct information on sysext masking
Kai Lueke [Tue, 16 Aug 2022 10:29:12 +0000 (12:29 +0200)] 
man: Correct information on sysext masking

While I had tested that a symlink to /dev/null works to "mask" a sysext
I must have gotten something wrong and thus the instructions in
519c2f0d6b343d140f7e08e3eb0f46708c023b4a don't work. What works,
at least at the moment, is to instead have an empty directory with the
extension name under /etc/extensions/.
Correct the info in the man page and add a test for it.

21 months agoci(lint): add shell linter - Differential ShellCheck
Jan Macku [Tue, 16 Aug 2022 12:34:49 +0000 (14:34 +0200)] 
ci(lint): add shell linter - Differential ShellCheck

It performs differential ShellCheck scans and report results directly in
pull request.

documentation:
https://github.com/redhat-plumbers-in-action/differential-shellcheck

21 months agotest-network: add tests for KeepCarrier= for tuntap interfaces 24301/head
Yu Watanabe [Fri, 12 Aug 2022 22:46:47 +0000 (07:46 +0900)] 
test-network: add tests for KeepCarrier= for tuntap interfaces

21 months agonetwork/tuntap: save tun or tap file descriptor in fd store
Yu Watanabe [Sat, 13 Aug 2022 08:18:55 +0000 (17:18 +0900)] 
network/tuntap: save tun or tap file descriptor in fd store

21 months agonetwork/tuntap: introduce KeepCarrier= setting
Yu Watanabe [Fri, 12 Aug 2022 22:45:49 +0000 (07:45 +0900)] 
network/tuntap: introduce KeepCarrier= setting

Closes #24267.

21 months agosysusers: add fsync for passwd (#24324)
Avram Lubkin [Tue, 16 Aug 2022 12:51:21 +0000 (08:51 -0400)] 
sysusers: add fsync for passwd (#24324)

https://github.com/systemd/systemd/pull/6636 added `fsync()` when
temporary shadow, group, and gshadow files are created, but it was
not added for passwd. As far as I can tell, this seems to have been
an oversight. I'm seeing real world issues where a blank /etc/passwd
file is being created if a machine loses power early in the boot process.

21 months agonetwork/tuntap: code cleanups
Yu Watanabe [Fri, 12 Aug 2022 22:35:21 +0000 (07:35 +0900)] 
network/tuntap: code cleanups

- merge unnecessarily split functions,
- drop unnecessary initializations,
- tighten variable scopes,
- introduce TUNTAP() helper function.

21 months agologin: use helper functions for fd store
Yu Watanabe [Mon, 15 Aug 2022 11:05:32 +0000 (20:05 +0900)] 
login: use helper functions for fd store

21 months agodaemon-util: introduce several helper functions for fd store
Yu Watanabe [Mon, 15 Aug 2022 11:05:21 +0000 (20:05 +0900)] 
daemon-util: introduce several helper functions for fd store

22 months agotpm-util: use trial session where appropriate
Lennart Poettering [Mon, 15 Aug 2022 09:44:52 +0000 (11:44 +0200)] 
tpm-util: use trial session where appropriate

TPM2 knows two types of policy sessions: "real" ones and "trial" ones. The
latter allow you to calculate a policy hash without this enforcing any
policy, which the former do. Typically you want to use the "trial" ones
when enrolling, and you have to use the "real" ones for unlocking. So
far we used "real" ones for both cases. Which works fine – as long as
the policy put together matches the current reality (e.g. the PCR values
included in the policy are the ones currently in place in the TPM).

Let's switch to using trial sessions for enrolling. First of all this is
preparation for later work to implement further policy extensions (for
example, policies binding to literally specified PCR values, instead of
the once currently measured). But from my perspective more importantly
it actually is cleaner, as it communicates more clearly what we are
actually doing here.

No user-visible change in behaviour.

22 months agomkosi: Update to latest commit
Daan De Meyer [Mon, 15 Aug 2022 12:31:13 +0000 (14:31 +0200)] 
mkosi: Update to latest commit

Introduces a more reliable mirror for Arch which should reduce the
number of mkosi Arch CI failures due to unreliable mirror selection.

22 months agoMerge pull request #24294 from rphibel/add-support-for-list-of-definitions-directories
Yu Watanabe [Mon, 15 Aug 2022 23:58:25 +0000 (08:58 +0900)] 
Merge pull request #24294 from rphibel/add-support-for-list-of-definitions-directories

repart: add support for list of definitions directories

22 months agoshutdown: trivial modernizations
Lennart Poettering [Mon, 15 Aug 2022 09:43:14 +0000 (11:43 +0200)] 
shutdown: trivial modernizations

22 months agocryptenroll: drop unnecessary {}
Lennart Poettering [Mon, 15 Aug 2022 09:42:22 +0000 (11:42 +0200)] 
cryptenroll: drop unnecessary {}

22 months agocreds-tool: don't declare variable in switch body
Lennart Poettering [Mon, 15 Aug 2022 09:41:07 +0000 (11:41 +0200)] 
creds-tool: don't declare variable in switch body

The lifetime of variables decalred in the main switch/case body is just
weird. Let's not rely on it, but just open a new {} block, like
everywhere else in similar cases.

22 months agoMerge pull request #24299 from yuwata/dhcp6-no-binding
Yu Watanabe [Mon, 15 Aug 2022 23:47:17 +0000 (08:47 +0900)] 
Merge pull request #24299 from yuwata/dhcp6-no-binding

dhcp6: gracefully handle NoBinding error

22 months agoFix typo in net-naming-scheme man page
Sean Anderson [Mon, 15 Aug 2022 15:54:19 +0000 (11:54 -0400)] 
Fix typo in net-naming-scheme man page

I noticed a typo in the man page. Fix it.

Fixes: 65c2ad985a ("udev: net_id: Use devicetree aliases when available")
22 months agotpm2: typo fix selecion → selection
Lennart Poettering [Mon, 15 Aug 2022 11:26:59 +0000 (13:26 +0200)] 
tpm2: typo fix selecion → selection

22 months agoMerge pull request #24263 from pothos/sysext-for-static-binaries
Lennart Poettering [Mon, 15 Aug 2022 11:34:54 +0000 (13:34 +0200)] 
Merge pull request #24263 from pothos/sysext-for-static-binaries

sysext: Support distribution-independent extensions with static binaries

22 months agotpm2-util: reduce unnecessary indentation
Lennart Poettering [Mon, 15 Aug 2022 09:45:41 +0000 (11:45 +0200)] 
tpm2-util: reduce unnecessary indentation

Follow-up for: 55efb33edb592786fe36fa4d0a990fbbfbd59cc2

22 months agoudev/cdrom_id: check last track info
Yu Watanabe [Sat, 13 Aug 2022 21:00:10 +0000 (06:00 +0900)] 
udev/cdrom_id: check last track info

Fixes off-by-one issue.

Fixes #24306.

22 months agosysext: introduce ARCHITECTURE field to match host architecture 24263/head
Kai Lueke [Tue, 9 Aug 2022 15:07:20 +0000 (17:07 +0200)] 
sysext: introduce ARCHITECTURE field to match host architecture

When an extension image has binaries they should match the host
architecture. Currently there is no way to specify this requirement.
Introduce an ARCHITECTURE field in the extension's release file that
may be set to prevent loading on the wrong host architecture.
Since this new field is introduced late, we don't want to make
specifying it mandatory as it would break existing sysext images.

See https://github.com/systemd/systemd/issues/24061

22 months agosysext: support distribution-independent extensions using ID=_any
Kai Lueke [Tue, 9 Aug 2022 11:34:18 +0000 (13:34 +0200)] 
sysext: support distribution-independent extensions using ID=_any

A sysext image that merely contains static binaries has no dependency
on the host distribution and should be able to be used anywhere.
Support the special '_any' value for the ID field in the extension to
opt-out of ID and VERSION_ID/SYSEXT_LEVEL matching.

See https://github.com/systemd/systemd/issues/24061

22 months agofirstboot: fix can't overwrite timezone
bin456789 [Sat, 13 Aug 2022 19:29:37 +0000 (03:29 +0800)] 
firstboot: fix can't overwrite timezone

22 months agonetwork/bridge: fix UseBPDU= and AllowPortToBeRoot=
Yu Watanabe [Fri, 12 Aug 2022 20:08:38 +0000 (05:08 +0900)] 
network/bridge: fix UseBPDU= and AllowPortToBeRoot=

Fixes bugs caused by 7f9915f0de67f3a10a4b22810d119da65af8c84a.

Fixes #24268.

22 months agoMerge pull request #24305 from yuwata/test-network
Yu Watanabe [Sat, 13 Aug 2022 21:55:29 +0000 (06:55 +0900)] 
Merge pull request #24305 from yuwata/test-network

test-network: also set StartLimitIntervalSec=0 for systemd-networkd.socket

22 months agoUse correct label for boot related issues
Jan Janssen [Sat, 13 Aug 2022 20:27:42 +0000 (22:27 +0200)] 
Use correct label for boot related issues

22 months agotest-network: use "systemctl restart" to restart networkd 24305/head
Yu Watanabe [Sat, 13 Aug 2022 18:56:01 +0000 (03:56 +0900)] 
test-network: use "systemctl restart" to restart networkd

22 months agotest-network: also set StartLimitIntervalSec=0 for systemd-networkd.socket
Yu Watanabe [Sat, 13 Aug 2022 18:48:51 +0000 (03:48 +0900)] 
test-network: also set StartLimitIntervalSec=0 for systemd-networkd.socket

The socket unit is frequently restarted during the test.

22 months agodhcp6: do not append ORO option when no option requested 24299/head
Yu Watanabe [Sat, 13 Aug 2022 17:43:51 +0000 (02:43 +0900)] 
dhcp6: do not append ORO option when no option requested

Fixes #24292.

22 months agodhcp6: gracefully handle NoBinding error
Yu Watanabe [Fri, 12 Aug 2022 19:47:54 +0000 (04:47 +0900)] 
dhcp6: gracefully handle NoBinding error

When we receive NoBinding status code, the requesting binding (address or
any other information) does not exist anymore in the server. Hence,
resending the request is meaningless. Let's restart the transaction from
the beginning in that case.

22 months agoMerge pull request #24138 from Keksgesicht/rfe/cryptenroll-keyfile
Yu Watanabe [Fri, 12 Aug 2022 18:35:03 +0000 (03:35 +0900)] 
Merge pull request #24138 from Keksgesicht/rfe/cryptenroll-keyfile

adding the option to use a keyfile to unlock the device

22 months agohwdb: Apply existing accel orientation quirk to all Chromebooks
Alper Nebi Yasak [Wed, 10 Aug 2022 19:09:32 +0000 (22:09 +0300)] 
hwdb: Apply existing accel orientation quirk to all Chromebooks

The cros-ec-accel and cros-ec-accel-legacy kernel modules internally
correct for the board-specific accelerometer mounting orientations.
Their sensor outputs are in a standard reference frame consistent across
different boards, so the orientation matrix already added for a number
of devices should apply to every device using cros-ec accelerometers.
The different matrix for the 'Nocturne' board seems to be an error.

Replace the existing hwdb rules for select Chromebooks with generic
rules that apply to all Chromebooks.

22 months agonetwork: replace usage of sd_bus_call_method_async() to bus_call_method_async() ...
williamsumendap [Fri, 12 Aug 2022 18:28:29 +0000 (11:28 -0700)] 
network: replace usage of sd_bus_call_method_async() to bus_call_method_async() (#24290)

22 months agoMerge pull request #24285 from yuwata/sd-device-new-from-path
Yu Watanabe [Fri, 12 Aug 2022 18:27:26 +0000 (03:27 +0900)] 
Merge pull request #24285 from yuwata/sd-device-new-from-path

sd-device: make sd_device_new_from_path() support symlink outside of /sys

22 months agoMerge pull request #24289 from yuwata/sd-device-monitor-set-description
Yu Watanabe [Fri, 12 Aug 2022 18:27:05 +0000 (03:27 +0900)] 
Merge pull request #24289 from yuwata/sd-device-monitor-set-description

sd-device-monitor: introduce sd_device_monitor_{set,get}_description()

22 months agotpm2-util: rename tpmKey → primary
Lennart Poettering [Fri, 12 Aug 2022 13:35:25 +0000 (15:35 +0200)] 
tpm2-util: rename tpmKey → primary

Let's use the nomenclature from the spec. "tpmKey" is just too genric.

22 months agotpm2-util: lower indentation level a tiny bit
Lennart Poettering [Fri, 12 Aug 2022 13:12:50 +0000 (15:12 +0200)] 
tpm2-util: lower indentation level a tiny bit

22 months agocryptenroll: fix memory leak
Lennart Poettering [Fri, 12 Aug 2022 13:24:31 +0000 (15:24 +0200)] 
cryptenroll: fix memory leak

22 months agoman: document support for drop-in files in systemd-repart 24294/head
Richard Phibel [Fri, 12 Aug 2022 17:09:07 +0000 (19:09 +0200)] 
man: document support for drop-in files in systemd-repart

22 months agoman: document support for list of definitions directories in systemd-repart
Richard Phibel [Fri, 12 Aug 2022 16:13:30 +0000 (18:13 +0200)] 
man: document support for list of definitions directories in systemd-repart

22 months agorepart: add support for list of definitions directories
Richard Phibel [Thu, 11 Aug 2022 18:20:40 +0000 (20:20 +0200)] 
repart: add support for list of definitions directories

22 months agoupdate TODO
Lennart Poettering [Fri, 5 Aug 2022 15:58:28 +0000 (17:58 +0200)] 
update TODO

22 months agoudev: use sd_device_new_from_path() and _new_child() 24285/head
Yu Watanabe [Fri, 12 Aug 2022 12:47:56 +0000 (21:47 +0900)] 
udev: use sd_device_new_from_path() and _new_child()

Follow-up for 65c2ad985a8debdf6d7d11fee5b466f280260f4b.

22 months agotest: add more tests for sd_device_new_from_path()
Yu Watanabe [Thu, 11 Aug 2022 17:31:38 +0000 (02:31 +0900)] 
test: add more tests for sd_device_new_from_path()

22 months agosd-device: allow to create sd-device object through a symlink outside of /sys
Yu Watanabe [Thu, 11 Aug 2022 16:54:47 +0000 (01:54 +0900)] 
sd-device: allow to create sd-device object through a symlink outside of /sys

For example, /proc/device-tree is a symlink to /sys/firmware/devicetree/base,
and the kernel documentation says the symlink should be used by userspace app.
See, https://www.kernel.org/doc/Documentation/ABI/testing/sysfs-firmware-ofw.
Hence, it is useful to make `sd_device_new_from_path()` support such symlink.

22 months agoMerge pull request #24273 from lnussel/refactor_sysuser_creds
Lennart Poettering [Fri, 12 Aug 2022 12:32:06 +0000 (14:32 +0200)] 
Merge pull request #24273 from lnussel/refactor_sysuser_creds

Refactor sysuser creds

22 months agoudev: set description for device monitor 24289/head
Yu Watanabe [Thu, 11 Aug 2022 19:33:32 +0000 (04:33 +0900)] 
udev: set description for device monitor

22 months agotest: use sd_device_monitor_set_description()
Yu Watanabe [Thu, 11 Aug 2022 19:27:28 +0000 (04:27 +0900)] 
test: use sd_device_monitor_set_description()

22 months agosd-device-monitor: logs description for device monitor
Yu Watanabe [Thu, 11 Aug 2022 19:14:53 +0000 (04:14 +0900)] 
sd-device-monitor: logs description for device monitor

22 months agosd-device-monitor: introduce sd_device_monitor_{set,get}_description()
Yu Watanabe [Thu, 11 Aug 2022 18:49:56 +0000 (03:49 +0900)] 
sd-device-monitor: introduce sd_device_monitor_{set,get}_description()

22 months agoMerge pull request #24286 from yuwata/test-sd-device-monitor
Yu Watanabe [Fri, 12 Aug 2022 12:24:40 +0000 (21:24 +0900)] 
Merge pull request #24286 from yuwata/test-sd-device-monitor

test-sd-device-monitor: several fixlets

22 months agosd-device-enumerator: drop noisy log messages
Yu Watanabe [Thu, 11 Aug 2022 18:18:49 +0000 (03:18 +0900)] 
sd-device-enumerator: drop noisy log messages

These are not for failed tasks, and provide almost no information.

22 months agoMerge pull request #24288 from yuwata/sd-device-monitor-fixlets
Yu Watanabe [Fri, 12 Aug 2022 12:23:24 +0000 (21:23 +0900)] 
Merge pull request #24288 from yuwata/sd-device-monitor-fixlets

sd-device-monitor: two fixlets

22 months agorepart: add test for drop-in files
Richard Phibel [Mon, 8 Aug 2022 15:47:22 +0000 (17:47 +0200)] 
repart: add test for drop-in files

22 months agorepart: Add support for drop-in overrides
Richard Phibel [Sat, 6 Aug 2022 13:00:49 +0000 (15:00 +0200)] 
repart: Add support for drop-in overrides

22 months agoconfig-parser: Add list of drop-in files as return argument of config_parse_many
Richard Phibel [Mon, 8 Aug 2022 13:40:46 +0000 (15:40 +0200)] 
config-parser: Add list of drop-in files as return argument of config_parse_many

This will be used to save the list of drop-in files for each partition

22 months agoudev: net_id: Use devicetree aliases when available
Sean Anderson [Tue, 9 Aug 2022 17:38:26 +0000 (13:38 -0400)] 
udev: net_id: Use devicetree aliases when available

Devicetree firmware contains an "aliases" node, containing various
aliases for devices described by the firmware. For ethernet devices,
these are named "ethernet0", "ethernet1", etc. They provide a convenient
means of numbering ethernet devices, especially on systems with no other
stable number other than the address. In particular, U-Boot already uses
these aliases to name its ethernet devices.

Previously, there have been attempts (such as [1]) to add support for
these aliases to Linux. However, these patches have been rejected
because it is the maintainers' view that naming policy be left to
userspace. Well, systemd is userspace, so here we are.

In terms of implementation, apparently there can be multiple device
trees at once. I have decided to dodge this problem for now, and just
use /proc/device-tree. If it is desired to support multiple device trees
later, then the scheme can be modified to include the device tree's
index. For example, /sys/firmware/devicetree/base2/aliases/ethernet3
might be named enb2d3.

For the moment we only support "ethernetX" aliases. Future patches might
want to also handle "canX" and "wifiX".

It is common on boards with only one ethernet device to use an alias of
just "ethernet". In this case, the index is an implicit 0. In case the
author of the firmware made a mistake, we check to ensure that aliases
of "ethernet" and "ethernet0" do not both exist.

[1] https://patchwork.kernel.org/project/linux-arm-kernel/patch/1399390594-1409-1-git-send-email-boris.brezillon@free-electrons.com/

Closes: #17625
22 months agoMerge pull request #24280 from mrc0mmand/fix-semaphore
Luca Boccassi [Thu, 11 Aug 2022 20:29:54 +0000 (21:29 +0100)] 
Merge pull request #24280 from mrc0mmand/fix-semaphore

A couple of Semaphore CI fixes for recent fails

22 months agosd-device-monitor: actually refuse to send invalid devices 24288/head
Yu Watanabe [Thu, 11 Aug 2022 19:19:27 +0000 (04:19 +0900)] 
sd-device-monitor: actually refuse to send invalid devices

Fixes an issue introduced by 9e79123884a36ce095b98d1c0fe247dddf02dbec.

22 months agosd-device-monitor: fix inversed condition
Yu Watanabe [Thu, 11 Aug 2022 19:16:56 +0000 (04:16 +0900)] 
sd-device-monitor: fix inversed condition

Fixes an issue introduced by b3d06b9226db96fddb6bb45a4708e2e8d413d91d.

22 months agotest: do not fill up receiver buffer 24286/head
Yu Watanabe [Thu, 11 Aug 2022 18:02:04 +0000 (03:02 +0900)] 
test: do not fill up receiver buffer

If a system has many devices, then the receiver buffer may be filled up.

Hopefully fixes https://bugzilla.redhat.com/show_bug.cgi?id=2095750

22 months agotest: add fake action and seqnum
Yu Watanabe [Thu, 11 Aug 2022 18:12:03 +0000 (03:12 +0900)] 
test: add fake action and seqnum

Otherwise, the receiver refuses the devices. See device_verify().

22 months agocore/cgroup: CPUWeight/CPUShares support idle input
wineway [Sat, 6 Aug 2022 11:14:44 +0000 (19:14 +0800)] 
core/cgroup: CPUWeight/CPUShares support idle input

Signed-off-by: wineway <wangyuweihx@gmail.com>
22 months agosemaphore: run autopkgtest with sudo 24280/head
Frantisek Sumsal [Thu, 11 Aug 2022 11:36:15 +0000 (13:36 +0200)] 
semaphore: run autopkgtest with sudo

Otherwise it can't access the newly create LXC container:

```
autopkgtest-virt-lxc: DBG: wait_booted: detecting init system failed, retrying...
autopkgtest-virt-lxc: DBG: stderr: lxc-attach: autopkgtest-lxc-trjmpu: tools/lxc_attach.c: main: 302 You lack access to /home/semaphore/.local/share/lxc
```

22 months agodocs: mention qemu fw_cfg size limitation 24273/head
Ludwig Nussel [Wed, 10 Aug 2022 12:21:50 +0000 (14:21 +0200)] 
docs: mention qemu fw_cfg size limitation

22 months agocreds: refactor reading user password
Ludwig Nussel [Tue, 9 Aug 2022 09:07:34 +0000 (11:07 +0200)] 
creds: refactor reading user password

Share code between firstboot and sysusers

22 months agotests: systemd-cryptenroll: unlock volume with keyfile 24138/head
Jan B [Wed, 27 Jul 2022 20:10:07 +0000 (22:10 +0200)] 
tests: systemd-cryptenroll: unlock volume with keyfile

22 months agodocs: adding "--unlock-key-file" to systemd-cryptenroll
Jan B [Wed, 27 Jul 2022 20:03:35 +0000 (22:03 +0200)] 
docs: adding "--unlock-key-file" to systemd-cryptenroll

22 months agoMerge pull request #24260 from systemd/coverity-update
Evgeny Vereshchagin [Thu, 11 Aug 2022 09:39:53 +0000 (12:39 +0300)] 
Merge pull request #24260 from systemd/coverity-update

ci: fetch the latest Coverity build script

22 months agosemaphore: drop the --keyserver= parameter for the download template
Frantisek Sumsal [Thu, 11 Aug 2022 09:32:21 +0000 (11:32 +0200)] 
semaphore: drop the --keyserver= parameter for the download template

since it's no longer supported/necessary.

See: https://github.com/lxc/lxc/commit/58520263041b6864cadad96278848f9b8ce78ee9

22 months agoci: lint the Coverity script 24260/head
Frantisek Sumsal [Thu, 11 Aug 2022 08:36:02 +0000 (10:36 +0200)] 
ci: lint the Coverity script

as we now use our own custom script for it.

22 months agoci: simplify the Coverity script a bit
Frantisek Sumsal [Tue, 9 Aug 2022 12:43:28 +0000 (14:43 +0200)] 
ci: simplify the Coverity script a bit

Also, address https://github.com/systemd/systemd/pull/24252#issuecomment-1208747320
by using a pre-defined e-mail address stored in the GH Action secrets.

22 months agoresolvctl: only remove protocol after last dot when mangling ifname for resolvconf
exploide [Wed, 10 Aug 2022 15:35:21 +0000 (17:35 +0200)] 
resolvctl: only remove protocol after last dot when mangling ifname for resolvconf

ifname_resolvconf_mangle is supposed to remove protocol suffixes like .dhcp
from interface names. But this removed also valid parts of the ifname like
VLAN IDs, e.g. enp2s0u4.72.dhcp -> enp2s0u4 instead of enp2s0u4.72

After this change, everything behind the last dot is removed instead of the first.

22 months agooomd: notify via dbus what have been killed
Oleg Solovyov [Tue, 2 Aug 2022 07:10:54 +0000 (10:10 +0300)] 
oomd: notify via dbus what have been killed

22 months agocore/scope: Add oom-kill status for scope units (#24269)
gtwang01 [Thu, 11 Aug 2022 03:19:43 +0000 (20:19 -0700)] 
core/scope: Add oom-kill status for scope units (#24269)

Closes #23557.

22 months agoMerge pull request #24264 from DaanDeMeyer/mkosi-dirs
Luca Boccassi [Wed, 10 Aug 2022 19:52:46 +0000 (20:52 +0100)] 
Merge pull request #24264 from DaanDeMeyer/mkosi-dirs

mkosi settings tweaks

22 months agoMerge pull request #24271 from yuwata/oom-log-message-m
Anita Zhang [Wed, 10 Aug 2022 18:02:28 +0000 (11:02 -0700)] 
Merge pull request #24271 from yuwata/oom-log-message-m

oom: drop invalid %m in the log message

22 months agocryptenroll: adding the option to use a keyfile to unlock the device
Jan B [Wed, 27 Jul 2022 11:35:13 +0000 (13:35 +0200)] 
cryptenroll: adding the option to use a keyfile to unlock the device

22 months agoMerge pull request #24256 from systemd/wip/hadess/greaseweazle
Yu Watanabe [Wed, 10 Aug 2022 13:27:49 +0000 (22:27 +0900)] 
Merge pull request #24256 from systemd/wip/hadess/greaseweazle

hwdb: Add Greaseweazle "drives" to the list of analyzers

22 months agooom: drop invalid %m in the log message 24271/head
Yu Watanabe [Wed, 10 Aug 2022 10:26:42 +0000 (19:26 +0900)] 
oom: drop invalid %m in the log message

Fixes https://github.com/systemd/systemd/issues/23785#issuecomment-1210030100.

22 months agoMerge pull request #23848 from yuwata/core-device-systemd-wants
Lennart Poettering [Wed, 10 Aug 2022 12:43:25 +0000 (14:43 +0200)] 
Merge pull request #23848 from yuwata/core-device-systemd-wants

core: fix SYSTEMD_WANTS and StopWhenUnneeded=

22 months agotree-wide: fix typo
Yu Watanabe [Wed, 10 Aug 2022 10:43:38 +0000 (19:43 +0900)] 
tree-wide: fix typo

22 months agomeson: Test correct efi linker for supported args
Jan Janssen [Tue, 9 Aug 2022 08:32:41 +0000 (10:32 +0200)] 
meson: Test correct efi linker for supported args

Fixes: #24241
22 months agopo: Translated using Weblate (Hungarian)
Balázs Meskó [Tue, 9 Aug 2022 20:19:15 +0000 (22:19 +0200)] 
po: Translated using Weblate (Hungarian)

Currently translated at 100.0% (189 of 189 strings)

Co-authored-by: Balázs Meskó <meskobalazs@mailbox.org>
Translate-URL: https://translate.fedoraproject.org/projects/systemd/master/hu/
Translation: systemd/main

22 months agomeson: use 'not in'
Yu Watanabe [Tue, 9 Aug 2022 05:48:14 +0000 (14:48 +0900)] 
meson: use 'not in'

Follow-ups for 60f97fee2d2f948c8e8963ea8ff767008cb93cae and
32963344736004e01ff4dd9dca079faabaf58cf2.

22 months agomkosi: Don't use InstallDirectory by default 24264/head
Daan De Meyer [Tue, 9 Aug 2022 18:31:29 +0000 (20:31 +0200)] 
mkosi: Don't use InstallDirectory by default

While this provides some marginal speedup, the disadvantage is
that files are never removed when doing cached builds, which can
sometimes lead to hard to debug issues. So let's not do this by
default.

22 months agomkosi: Use mkosi.output/ as output directory by default
Daan De Meyer [Tue, 9 Aug 2022 18:30:45 +0000 (20:30 +0200)] 
mkosi: Use mkosi.output/ as output directory by default

Better than creating a mess of output files in the root directory.

22 months agoMerge pull request #24222 from yuwata/test-network-units
Frantisek Sumsal [Tue, 9 Aug 2022 17:08:50 +0000 (17:08 +0000)] 
Merge pull request #24222 from yuwata/test-network-units

network: wait for teql netdev before setting qdisc

22 months agosleep: support multiple battery instead of only BAT0
Sonali Srivastava [Wed, 27 Jul 2022 06:23:21 +0000 (11:53 +0530)] 
sleep: support multiple battery instead of only BAT0

22 months agohwdb: Add Greaseweazle "drives" to the list of analyzers 24256/head
Bastien Nocera [Thu, 21 Apr 2022 09:11:22 +0000 (11:11 +0200)] 
hwdb: Add Greaseweazle "drives" to the list of analyzers

They're floppy disk flux readers and writers used in digital
preservation and can be broadly considered to be "analyzers" of magnetic
fluxes.

This will have the intended side-effect of giving access to the device
to users at the console, obsoleting:
https://github.com/keirf/greaseweazle/blob/master/scripts/49-greaseweazle.rules

22 months agohwdb: Allow users access to USB serial for analysers
Bastien Nocera [Tue, 9 Aug 2022 16:09:32 +0000 (18:09 +0200)] 
hwdb: Allow users access to USB serial for analysers

Allow users at the console access to the USB serial interface for USB
analysers.

See 9e2dbfef479060ed850ccdd9cd82d3f0cda2b5c0

22 months agohwdb: analyzers: Clarify the type of devices we want listed
Bastien Nocera [Tue, 9 Aug 2022 16:08:24 +0000 (18:08 +0200)] 
hwdb: analyzers: Clarify the type of devices we want listed

22 months agoNEWS: add entries for v252
Zbigniew Jędrzejewski-Szmek [Tue, 9 Aug 2022 13:21:10 +0000 (15:21 +0200)] 
NEWS: add entries for v252

22 months agotest-network: split out qdisc and wait-online tests from NetworkdNetworkTests 24222/head
Yu Watanabe [Sat, 6 Aug 2022 03:36:41 +0000 (12:36 +0900)] 
test-network: split out qdisc and wait-online tests from NetworkdNetworkTests