1
1
mirror of https://github.com/systemd/systemd-stable.git synced 2024-12-24 21:34:08 +03:00
Commit Graph

59234 Commits

Author SHA1 Message Date
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
gtwang01
b607fd3f32
tree-wide: use bus locator (#24252)
This modifies some sd_bus calls to equivalent bus calls.
2022-08-09 16:19:09 +09:00
Yu Watanabe
85ff4150e1 backlight: accept embedded display port named e.g. card0-eDP-1 2022-08-09 14:30:05 +09:00
Luca BRUNO
5ed47c4d23 sysusers: properly process user entries with an explicit GID
This tweaks user creation logic to properly take into consideration
an explicitly requested GID.
It fixes a bug where the creation flow would mistakenly fall back
to use the username instead, resulting in wrong lookups in case of
users and groups using the same name.
2022-08-09 04:58:32 +09:00
Luca BRUNO
6b6e45eb73 sysusers: only check whether the requested GID is available
This relaxes the availability check when creating a group, if an
explicit GID has been requested.
It avoids mixing up users and groups entries with valid and unique
UIDs/GIDs, but each having the same ID number.
2022-08-09 04:58:15 +09:00
Yu Watanabe
eff6bc9294
Merge pull request #24244 from yuwata/device-enumerator
sd-device-enumerator: fix sysattr match
2022-08-09 04:57:48 +09:00
Ludwig Nussel
8313a1a5cd kmod-setup: load dmi-sysfs if it's a module 2022-08-08 19:22:53 +01:00
Yu Watanabe
50f9c507b2 test: add tests for sd_device_enumerator_add_match_sysattr/property() 2022-08-09 02:21:25 +09:00
Yu Watanabe
b07131facf sd-device-enumerator: FOREACH_DEVICE_PROPERTY() does not provide NULL value
Hence, when sd_device_enumerator_add_match_property() called with NULL
for value, then the filter always unmatches with the device.
2022-08-09 01:17:03 +09:00
Yu Watanabe
585f2035b3 sd-device-enumerator,monitor: fix sysattr match
Previously, if sd_device_enumerator_add_match_sysattr() is called for
the same sysattr with different values, then no device passed the filter.

Now, the accepted values (or patterns) are stored in strv, and if the
sysattr value of a device matches with the strv, then the device passes
the filter.
2022-08-09 01:17:00 +09:00
Chih-Hsuan Yen
7aa0b0121e cryptsetup: support keyfile-timeout for using a device as the key file
Closes https://github.com/systemd/systemd/issues/21993
2022-08-08 17:03:28 +01:00
Yu Watanabe
57a0e3f503
Merge pull request #24221 from yuwata/dhcp-client-cleanups
dhcp: use struct hw_addr_data
2022-08-08 23:59:58 +09:00
Yu Watanabe
52be2b43f5 hash-funcs: introduce string_hash_ops_free_strv_free 2022-08-08 23:41:28 +09:00
Lennart Poettering
65a667c49c
Merge pull request #23511 from diabonas/tpm2-pin-systemd-gpt-auto-generator
cryptsetup: make systemd-gpt-auto-generator work with TPM2 and PIN
2022-08-08 15:40:03 +02:00
Lennart Poettering
2361820e7b
Merge pull request #24220 from yuwata/on-ac-power
udev-util: assume running on AC power when no battery found
2022-08-08 15:35:55 +02:00
Jan Janssen
79a7ef89aa stub: Use EfiLoaderCode for kernel memory
Fixes: #24237
2022-08-08 15:33:35 +02:00
Lennart Poettering
d096265708
Merge pull request #24044 from dtardon/default-device-timeout
Add a configuration option for setting default device timeout
2022-08-08 15:32:55 +02:00