Commit graph

59192 commits

Author SHA1 Message Date
Richard Phibel 39fc0174c3 repart: Add support for drop-in overrides 2022-08-12 12:48:29 +02:00
Richard Phibel ead3a3fc87 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
2022-08-12 12:48:29 +02:00
Sean Anderson 65c2ad985a 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
2022-08-12 11:15:16 +02:00
Luca Boccassi d9c6956ee4
Merge pull request #24280 from mrc0mmand/fix-semaphore
A couple of Semaphore CI fixes for recent fails
2022-08-11 21:29:54 +01:00
Yu Watanabe 8bb4989906 sd-device-monitor: actually refuse to send invalid devices
Fixes an issue introduced by 9e79123884.
2022-08-12 04:34:19 +09:00
Yu Watanabe 133d78966f sd-device-monitor: fix inversed condition
Fixes an issue introduced by b3d06b9226.
2022-08-12 04:34:19 +09:00
Yu Watanabe 8164957461 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
2022-08-12 03:13:22 +09:00
Yu Watanabe 46c1223b24 test: add fake action and seqnum
Otherwise, the receiver refuses the devices. See device_verify().
2022-08-12 03:13:22 +09:00
wineway c8340822cf core/cgroup: CPUWeight/CPUShares support idle input
Signed-off-by: wineway <wangyuweihx@gmail.com>
2022-08-11 14:25:58 +02:00
Frantisek Sumsal 3b9ac80085 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
```
2022-08-11 13:36:15 +02:00
Ludwig Nussel 9c28539a95 docs: mention qemu fw_cfg size limitation 2022-08-11 13:32:55 +02:00
Ludwig Nussel ff86850b30 creds: refactor reading user password
Share code between firstboot and sysusers
2022-08-11 13:32:55 +02:00
Jan B 7fd55538aa tests: systemd-cryptenroll: unlock volume with keyfile 2022-08-11 12:32:52 +02:00
Jan B 1f4190244b docs: adding "--unlock-key-file" to systemd-cryptenroll 2022-08-11 12:32:47 +02:00
Evgeny Vereshchagin 1cb3f4ad6e
Merge pull request #24260 from systemd/coverity-update
ci: fetch the latest Coverity build script
2022-08-11 12:39:53 +03:00
Frantisek Sumsal 8162feac10 semaphore: drop the --keyserver= parameter for the download template
since it's no longer supported/necessary.

See: 5852026304
2022-08-11 11:32:21 +02:00
Frantisek Sumsal 34a2f39b37 ci: lint the Coverity script
as we now use our own custom script for it.
2022-08-11 10:57:25 +02:00
Frantisek Sumsal 176086a2ec 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.
2022-08-11 10:57:25 +02:00
exploide e8d0eb3915 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.
2022-08-11 09:59:15 +02:00
Oleg Solovyov d784a8d474 oomd: notify via dbus what have been killed 2022-08-11 09:53:55 +02:00
gtwang01 7238fd51d4
core/scope: Add oom-kill status for scope units (#24269)
Closes #23557.
2022-08-11 12:19:43 +09:00
Luca Boccassi 76d79e7e35
Merge pull request #24264 from DaanDeMeyer/mkosi-dirs
mkosi settings tweaks
2022-08-10 20:52:46 +01:00
Anita Zhang 2ef59656b7
Merge pull request #24271 from yuwata/oom-log-message-m
oom: drop invalid %m in the log message
2022-08-10 11:02:28 -07:00
Jan B 03f36e9c01 cryptenroll: adding the option to use a keyfile to unlock the device 2022-08-10 17:13:57 +02:00
Yu Watanabe d7aaf35ce2
Merge pull request #24256 from systemd/wip/hadess/greaseweazle
hwdb: Add Greaseweazle "drives" to the list of analyzers
2022-08-10 22:27:49 +09:00
Yu Watanabe b6f6df4cb0 oom: drop invalid %m in the log message
Fixes https://github.com/systemd/systemd/issues/23785#issuecomment-1210030100.
2022-08-10 22:15:52 +09:00
Lennart Poettering 46cfc85f7e
Merge pull request #23848 from yuwata/core-device-systemd-wants
core: fix SYSTEMD_WANTS and StopWhenUnneeded=
2022-08-10 14:43:25 +02:00
Yu Watanabe 5c19169fe9 tree-wide: fix typo 2022-08-10 19:43:38 +09:00
Jan Janssen 6a941db798 meson: Test correct efi linker for supported args
Fixes: #24241
2022-08-10 09:44:21 +02:00
Balázs Meskó b34242591d 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
2022-08-10 06:04:56 +09:00
Yu Watanabe 53403091d6 meson: use 'not in'
Follow-ups for 60f97fee2d and
3296334473.
2022-08-09 20:21:30 +01:00
Daan De Meyer d808662ec0 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.
2022-08-09 20:31:29 +02:00
Daan De Meyer 670dfcb6ec mkosi: Use mkosi.output/ as output directory by default
Better than creating a mess of output files in the root directory.
2022-08-09 20:30:45 +02:00
Frantisek Sumsal ff71363c26
Merge pull request #24222 from yuwata/test-network-units
network: wait for teql netdev before setting qdisc
2022-08-09 17:08:50 +00:00
Sonali Srivastava 746cf8980b sleep: support multiple battery instead of only BAT0 2022-08-09 17:13:35 +01:00
Bastien Nocera 9ab755dce5 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
2022-08-09 18:12:19 +02:00
Bastien Nocera 9cb1dcae8c hwdb: Allow users access to USB serial for analysers
Allow users at the console access to the USB serial interface for USB
analysers.

See 9e2dbfef47
2022-08-09 18:12:19 +02:00
Bastien Nocera 838d0fd3d5 hwdb: analyzers: Clarify the type of devices we want listed 2022-08-09 18:12:19 +02:00
Zbigniew Jędrzejewski-Szmek e49d111b8f NEWS: add entries for v252 2022-08-09 15:21:10 +02:00
Yu Watanabe 23b3819209 test-network: split out qdisc and wait-online tests from NetworkdNetworkTests 2022-08-09 19:37:50 +09:00
Yu Watanabe 4c7d13f4b2 test-network: split test_qdisc() and test_qdisc2()
And check module availability in each tests.

This also sorts qdisc tests.
2022-08-09 19:37:50 +09:00
Yu Watanabe 854f989958 test-network: check qdisc feature by module existence 2022-08-09 19:37:50 +09:00
Yu Watanabe 5cdc7c89cb test-network: rename tun99 and tap99
The names seem to be used in AWS.

This also merges test_tun() and test_tap().
2022-08-09 19:37:49 +09:00
Yu Watanabe 17479d51cc test-network: show stdout and stderr on failure in check_output() 2022-08-09 19:37:49 +09:00
Yu Watanabe 66504b22e2 test-network: drop unused text= arguments 2022-08-09 19:37:49 +09:00
Yu Watanabe b05c4d6bbf test-network: also run timesyncd under sanitizer or valgrind 2022-08-09 19:37:49 +09:00
Yu Watanabe 67a9b3ec94 test-network: use timedatectl in build directory 2022-08-09 19:37:49 +09:00
Yu Watanabe 9b2a2e06c4 network/teql: wait for corresponding teql interface to be available 2022-08-09 19:37:49 +09:00
Yu Watanabe 21261ea231 network/qdisc: introduce is_ready() in qdisc vtable
Preparation for next commit.
2022-08-09 19:37:49 +09:00
josh-gordon-fb 78fa2f91d2
core/cgroup: use bus locator (#24251) 2022-08-09 16:20:07 +09:00