Zbigniew Jędrzejewski-Szmek
a61473bde5
shared/condition: accept size suffixes for ConditionMemory
...
Fixes #23697 .
2022-06-10 19:50:59 +01:00
Luca Boccassi
e48bc49271
Merge pull request #23687 from yuwata/dns-domain-trivial-cleanups
...
dns-domain: trivial cleanups
2022-06-10 19:50:22 +01:00
Frantisek Sumsal
bf24eafcd2
Merge pull request #23584 from yuwata/test-login
...
test: import logind test from debian/ubuntu test suite
2022-06-10 14:50:35 +00:00
Frantisek Sumsal
a359237fb7
Merge pull request #23690 from yuwata/test-sd-device
...
test: several tweaks for test-sd-device
2022-06-10 14:50:01 +00:00
Zbigniew Jędrzejewski-Szmek
d331f48482
docs/CONTRIBUTING: ask people to send a ping on stalled reviews
...
A few related changes: be explicit that 'main' is the branch we're referring
to. There was a case recently of somebody rebasing on 'master' by mistake.
It's better to be explicit, since 'main' is still not the default for git
(AFAIK).
Also, github seems to send mails about force-pushes, so drop that as a
justification. Commenting about changes that were done is useful even if
github were to send a notification.
And finally, $subject. We do that ourselves, but outside contributors might not
know that that's expected.
2022-06-10 15:04:23 +02:00
Jan Janssen
f23b2a04e6
efi-string: Remove one more |= for bool
...
This one was missed in #23589 .
2022-06-10 14:14:57 +02:00
Zbigniew Jędrzejewski-Szmek
e538d59367
Merge pull request #23683 from keszybz/status-format
...
Default to default-status-unit-format=name in developer mode
2022-06-10 14:11:53 +02:00
James Hilliard
76abad4d47
meson: add experimental bpf-gcc compiler support
...
Not fully working but should make it easier to clean up remaining
issues.
2022-06-10 14:01:19 +02:00
Zbigniew Jędrzejewski-Szmek
02bf03405b
Merge pull request #23689 from yuwata/test-timedate
...
test: import timedated test from debian/ubuntu test suite
2022-06-10 13:56:48 +02:00
Benjamin Franzke
4d74273d69
docs: desaturate dark-mode background color
...
The documentations dark-mode background color as
added in #23417 was perceived to be too purple-y [1]
and is therefore replaced by a desaturated black
that is derived from the systemd brand-black using
12% less HSL saturation.
[1] https://github.com/systemd/systemd/pull/23417#issuecomment-1146323820
2022-06-10 13:52:31 +02:00
Zbigniew Jędrzejewski-Szmek
819c0dcbf5
meson: use status-unit-format-default=name in developer mode
...
I think developers are particularly unlikely to find the descriptions
useful, and would benefit from being able to copy&paste unit names.
Let's make this choice automatically.
2022-06-10 13:51:17 +02:00
Zbigniew Jędrzejewski-Szmek
79dec86add
meson: add status unit format to summary
2022-06-10 13:51:17 +02:00
Yu Watanabe
67bca872ea
Merge pull request #23688 from yuwata/boot-efi-string-efi_fnmatch-fix-over-flow
...
boot/efi-string: check the end of haystack before testing remaining pattern
2022-06-10 18:47:15 +09:00
Yu Watanabe
3284dd9159
test: exclude network interfaces
...
After https://github.com/systemd/systemd-centos-ci/pull/492 is merged,
the networkd test may be running when test-sd-device is invoked.
Let's exclude net subsystem.
2022-06-10 18:44:21 +09:00
Yu Watanabe
759ed0a253
test: import timedated test from debian/ubuntu test suite
2022-06-10 16:04:52 +09:00
Yu Watanabe
9c94ab0f6f
test: import logind test from debian/ubuntu test suite
2022-06-10 15:44:10 +09:00
Yu Watanabe
f9e090b16d
test: always exclude devices named loop*
...
Not only block subsystem, but also misc has device named "loop*", and
the test always said that the following device is newly found:
---
/* test_sd_device_enumerator_filter_subsystem */
New device found: subsystem:misc syspath:/sys/devices/virtual/misc/loop-control
1 new devices are found in re-scan
---
2022-06-10 15:36:21 +09:00
Yu Watanabe
3d52219390
test: drop redundant IMAGE_NAME=
...
If it is not specified, then "default" will be used.
2022-06-10 12:31:14 +09:00
Yu Watanabe
da5fb1877d
boot/efi-string: check the end of haystack before testing remaining pattern
...
Fixes buffer-overflow reported at https://github.com/systemd/systemd/pull/23589#issuecomment-1151820341 .
2022-06-10 12:05:38 +09:00
Yu Watanabe
c07eb49aff
devnode-acl: use set_put_strdup_full() and set_ensure_consume()
2022-06-10 10:47:25 +09:00
Yu Watanabe
47484dd955
dns-domain: simplify code a bit
2022-06-10 09:49:07 +09:00
Yu Watanabe
8d896617b4
dns-domain: use dns_name_concat()
...
`dns_name_normalize()` is an alias of `dns_name_concat()`.
For consistency with `dns_name_is_valid_ldh()`, let's use
`dns_name_concat()`.
2022-06-10 09:42:33 +09:00
Yu Watanabe
8bf796eeac
Merge pull request #23589 from medhefgo/efi-clang
...
boot: Drop use of several gnu-efi functions
2022-06-10 08:54:48 +09:00
i-do-cpp
67225a96e5
fix: sd_id128_get_invocation now works for user services
2022-06-10 08:28:37 +09:00
Yu Watanabe
74223cbe14
tree-wide: fix typo
2022-06-10 08:26:08 +09:00
H A
18b7a9628e
po: Translated using Weblate (Estonian)
...
Currently translated at 18.5% (35 of 189 strings)
Co-authored-by: H A <contact+fedora@hen.ee >
Translate-URL: https://translate.fedoraproject.org/projects/systemd/master/et/
Translation: systemd/main
2022-06-10 06:22:10 +09:00
Frantisek Sumsal
894dad2975
test: account for ADDR_NO_RANDOMIZE if it's set
...
On ppc64le sanitizers disable ASLR (i.e. by setting ADDR_NO_RANDOMIZE),
which opinionated_personality() doesn't return. Let's tweak the current
personality ourselves in such cases.
See: https://github.com/llvm/llvm-project/commit/78f7a6eaa601bfdd6ae70ffd3da2254c21ff77f9
Resolves : #23666
2022-06-10 05:34:01 +09:00
Yu Watanabe
677ec2d609
Merge pull request #23348 from medhefgo/log-shutdown-blockers
...
shutdown: Log processes that block umount
2022-06-10 05:33:37 +09:00
Luca Boccassi
9c3e2a2a97
Merge pull request #23658 from keszybz/gcc-warnings-2
...
Fixes for NULL-pointer arguments based on gcc warnings
2022-06-09 17:48:09 +01:00
James Hilliard
9b948bc062
bpf: use __always_inline macro in restrict-ifaces.bpf.c
...
This appears to be more reliable at inlining with some compilers.
2022-06-09 17:45:11 +01:00
Daan De Meyer
8239002226
meson: Build with frame pointers in developer mode
...
Profiling tools tend to work better when binaries and libraries
are compiled with frame pointers as without them there's no easy
and fast way to get the current stacktrace.
2022-06-09 17:44:26 +01:00
Jan Janssen
df48b430a4
shutdown: Lazy unmount /oldroot/{dev,proc,sys}
...
These should not prevent us from cleaning up the remainders of /oldroot
if something in the kernel is blocking these from being unmounted.
2022-06-09 17:02:50 +02:00
Jan Janssen
20596876e3
shutdown: Log processes that block umount
2022-06-09 17:00:46 +02:00
Jan Janssen
5125b67742
shutdown: Rename umount_log_level and make it a bool
...
This was already effectively a bool because only ever two states were
valid. To make the meaning of it more clear, also rename it to last_try.
2022-06-09 16:50:54 +02:00
Luca Boccassi
136f1754f9
Merge pull request #23680 from keszybz/boot-loader-counting
...
Move boot counting into BLS proper
2022-06-09 13:16:14 +01:00
Zbigniew Jędrzejewski-Szmek
c4da8e90fa
systemctl: simplify code a bit
...
gcc insists that bus may be used unitialized here, but I don't see any
possibility of that.
2022-06-09 13:25:17 +02:00
Zbigniew Jędrzejewski-Szmek
c90821aa49
shared/bus-util: rename variables to follow newer style
2022-06-09 13:25:17 +02:00
Zbigniew Jędrzejewski-Szmek
73e910926e
shared/bus-util: simplification
2022-06-09 13:25:17 +02:00
Zbigniew Jędrzejewski-Szmek
482dac9431
test-udev-util: do not pass NULL to printf, style fixes
2022-06-09 13:25:17 +02:00
Zbigniew Jędrzejewski-Szmek
fa1aa468b9
test-process-util: do not pass NULL to printf, simplify tests
...
We don't need to fork to test that the function returns -EINVAL
on null input. So let's simplify things a bit.
2022-06-09 13:25:17 +02:00
Zbigniew Jędrzejewski-Szmek
e9edf285db
test-dns-domain: a few more "NULL in printf %s"s
2022-06-09 13:25:17 +02:00
Zbigniew Jędrzejewski-Szmek
d10cee5e90
test-fstab-util: one more "NULL in printf %s"
2022-06-09 13:25:17 +02:00
Zbigniew Jędrzejewski-Szmek
8b98cfb7dd
various: indentation
2022-06-09 13:25:17 +02:00
Zbigniew Jędrzejewski-Szmek
82a0ffe585
docs/AUTOMATIC_BOOT_ASSESSMENT: describe how to integrate a DE viability check
...
I reordered the component list to match chronological order: we first install
an entry, then boot it, then the checks happen, etc. Before it was
ordered by "importance", but that is harder to follow.
2022-06-09 13:22:48 +02:00
Zbigniew Jędrzejewski-Szmek
db82e667c7
docs/BLS: move "boot counting" into the main spec
...
The boot-counting file-renaming entry-sorting part that the boot
loader implements is moved to the main document. The second document
describes a specific implementation that is provided through systemd
units.
The sorting algorithm is extended to say that bad entries should
be sorted later.
I also added a note that bad entries should be available for booting.
For some reason, the second document said that it applies only to EFI systems.
AFAIK there are no implementations for non-EFI, but the specification should
work just fine, if somebody were to implement it. So that part is dropped.
Fixes #23345 .
Sadly, bootctl doesn't implement sorting of boot entries with counting :((((
But I'm leaving that for another PR.
2022-06-09 13:22:48 +02:00
Zbigniew Jędrzejewski-Szmek
a78af10ae7
Merge pull request #23654 from keszybz/gcc-warnings
...
Fixes for NULL-pointer arguments based on gcc warnings
2022-06-09 12:55:47 +02:00
Zbigniew Jędrzejewski-Szmek
de566170c2
Merge pull request #23678 from aafeijoo-suse/shell-completion-cryptenroll
...
bash-completion: add systemd-cryptenroll support
2022-06-09 12:54:06 +02:00
Jan Janssen
55233913c8
boot: Drop use of DuplicateDevicePath
2022-06-09 12:50:13 +02:00
Jan Janssen
e17fd5538f
boot: Don't copy device path
...
BS->LocateDevicePath only advances the passed device path pointer.
It does not actually modify it, so there is no need to make a copy.
2022-06-09 12:50:13 +02:00
Jan Janssen
b05d69ed72
boot: Drop use of LibLocateHandle
2022-06-09 12:50:13 +02:00