Zbigniew Jędrzejewski-Szmek [Tue, 24 May 2022 08:20:23 +0000 (10:20 +0200)]
Minor wording fixes
Some NEWS entries are tweaked a bit to address complaints about readability
from users.
"udev" is pronounced as /ˈjuːdɛv/, like in "user", hence "a" not "an".
Daan De Meyer [Mon, 23 May 2022 13:32:42 +0000 (15:32 +0200)]
portable: Fix memory leak in maybe_enable_disable()
Fixes #23481
Frantisek Sumsal [Mon, 23 May 2022 19:16:22 +0000 (19:16 +0000)]
Merge pull request #23475 from nabijaczleweli/certified-lint.1-moment
Actually run shellcheck on CI
Daan De Meyer [Wed, 18 May 2022 11:35:21 +0000 (13:35 +0200)]
dissect-image: Explicitly remove partitions when done with image
When closing a loop device, the kernel will asynchronously remove
the probed partitions. This can lead to race conditions where we
try to reuse a partition device that still needs to be removed by
the kernel. To avoid such issues, let's explicitly try to remove
any partitions using BLKPG_DEL_PARTITION when we're done with an
image.
To make sure we don't try to remove partitions when we want them
to remain (e.g. systemd-dissect --mount), we add
dissected_image_relinquish() in a similar vein to loop_device_relinquish()
and decrypted_image_relinquish().
Evgeny Vereshchagin [Sat, 7 May 2022 12:40:56 +0000 (12:40 +0000)]
ci: bump gcc in the "build test" workflow
gcc-12 has been released
наб [Sun, 22 May 2022 20:09:23 +0000 (22:09 +0200)]
shellcheck-clean kernel-install again
наб [Sun, 22 May 2022 15:13:44 +0000 (17:13 +0200)]
Fix which(1) in meson-build.sh
наб [Sun, 22 May 2022 14:20:56 +0000 (16:20 +0200)]
Don't ignore kernel-install for shellcheck
Zbigniew Jędrzejewski-Szmek [Mon, 23 May 2022 07:26:19 +0000 (09:26 +0200)]
Merge pull request #23344 from medhefgo/boot-config-add
boot: Small config entry add changes
Zbigniew Jędrzejewski-Szmek [Mon, 23 May 2022 07:14:51 +0000 (09:14 +0200)]
Merge pull request #23414 from keszybz/analyze-vercmp
systemd-analyze compare-versions
Jan Janssen [Sun, 22 May 2022 07:37:27 +0000 (09:37 +0200)]
test: Test STRLEN for C11 string literals
Phaedrus Leeds [Sun, 22 May 2022 16:08:37 +0000 (12:08 -0400)]
NEWS: Fix some minor mistakes
Daan De Meyer [Sun, 22 May 2022 12:36:07 +0000 (14:36 +0200)]
coredump: Fix format string type mismatch
Fixes #23471
Jan Janssen [Wed, 11 May 2022 11:00:00 +0000 (13:00 +0200)]
boot: Rename functions adding entries to match userspace
Jan Janssen [Wed, 11 May 2022 10:52:24 +0000 (12:52 +0200)]
boot: Remove trivial config entry add helpers
These two functions have very limited use and are just fancy wrappers
around structured initializers.
Victor Westerhuis [Sun, 14 Nov 2021 15:26:03 +0000 (16:26 +0100)]
Do not require a valid version when parsing sd-boot loader entries
This fixes #20820
Luca Boccassi [Sun, 22 May 2022 01:29:59 +0000 (02:29 +0100)]
Merge pull request #23465 from mrc0mmand/bump-actions-to-ubuntu-2204
ci: bump GH Actions to Ubuntu Jammy where applicable
Benjamin Franzke [Sat, 21 May 2022 14:28:32 +0000 (16:28 +0200)]
docs: improve table readability
Let the table span more than the default content width,
if the table contains alot of data (controlled by width: auto)
(720px is very good for continuous text, but too narrow for tables).
The container class is therefore adapted to put the
width restriction on the elements itself, allowing for
exceptions for individual elements like <table> and
<h1> (which used an offset margin before and is now
streamlined to use a max-width as well).
Also add a striped background to ease reading rows
and allow for horizontal mobile scrolling without
overflowing the entire document, only the table itself.
Luca Boccassi [Sat, 21 May 2022 21:38:56 +0000 (22:38 +0100)]
Merge pull request #22550 from medhefgo/boot-mixed
boot: EFI mixed mode support
Frantisek Sumsal [Sat, 21 May 2022 15:34:34 +0000 (17:34 +0200)]
ci: temporarily disable validation of GH Action files
since the current version of super-linter doesn't recognize
ubuntu-22.04 as a valid runner specification. This should
be fixed once https://github.com/github/super-linter/pull/2897
is merged, which includes
https://github.com/rhysd/actionlint/commit/
09a60b0f5761c2d066def294e541c25a89756eea
Frantisek Sumsal [Sat, 21 May 2022 15:30:51 +0000 (17:30 +0200)]
cryptsetup: fix build with -Db_ndebug=true
```
...
../src/cryptsetup/cryptsetup-tokens/cryptsetup-token-systemd-fido2.c:33:13: error: variable 'r' set but not used [-Werror,-Wunused-but-set-variable]
int r;
^
1 error generated.
...
../src/cryptsetup/cryptsetup-tokens/cryptsetup-token-systemd-pkcs11.c:34:13: error: variable 'r' set but not used [-Werror,-Wunused-but-set-variable]
int r;
^
1 error generated.
ninja: build stopped: subcommand failed.
+ fatal ''\''meson compile'\'' failed with -Db_ndebug=true'
```
Frantisek Sumsal [Sat, 21 May 2022 14:35:55 +0000 (16:35 +0200)]
ci: prefer the distro llvm version if available
Frantisek Sumsal [Sat, 21 May 2022 14:03:14 +0000 (16:03 +0200)]
ci: bump GH Actions to Ubuntu Jammy where applicable
Luca Boccassi [Tue, 17 May 2022 19:09:49 +0000 (20:09 +0100)]
resolved: default to OpenSSL
If both gnutls and openssl are available, prefer openssl.
We are gradually moving toward supporting openssl only as the
crypto library, and the resolved gnutls backend will be dropped
at some point, so start nudging users toward the openssl one.
Zbigniew Jędrzejewski-Szmek [Sat, 21 May 2022 16:11:18 +0000 (18:11 +0200)]
Merge pull request #23460 from keszybz/docs-redirect
docs: rename COREDUMP_PACKAGE_METADATA → ELF_PACKAGE_METADATA
Benjamin Franzke [Sat, 21 May 2022 11:08:19 +0000 (13:08 +0200)]
docs: adapt forward layout to systemd.io design
Zbigniew Jędrzejewski-Szmek [Sat, 21 May 2022 16:07:38 +0000 (18:07 +0200)]
docs: rename COREDUMP_PACKAGE_METADATA → ELF_PACKAGE_METADATA
The format described by this document is used not only for coredumps,
but also for other purposes, so we've outgrown the old title.
A redirect was added based on https://codepo8.github.io/github-redirection-demo/.
I tried to use a relative link, but it's hard to test if it works
before merging.
Co-authored-by: Benjamin Franzke <benjaminfranzke@googlemail.com>
Yu Watanabe [Sat, 21 May 2022 14:48:58 +0000 (23:48 +0900)]
Merge pull request #23464 from bnf/update-wiki-links
tree-wide: replace obsolete wiki links with systemd.io/manpages
Jan Janssen [Thu, 17 Feb 2022 12:40:25 +0000 (13:40 +0100)]
bootctl: Add EFI arch detection support
Jan Janssen [Mon, 7 Feb 2022 11:33:45 +0000 (12:33 +0100)]
boot: Support booting in EFI mixed mode
The kernel provides a ".compat" PE section that contains a list of
compat entry points with their respective arches. This entry point
does all the heavy lifting to support running 64bit kernels when
the UEFI firmware is 32bit.
Note that the EFI handover protocol code in linux_x86.c does not
need any adjustments as it already correctly calls the 32bit handover
code.
Fixes: #17056
Jan Janssen [Thu, 10 Mar 2022 11:53:16 +0000 (12:53 +0100)]
boot: Add LINUX_INITRD_MEDIA support to boot.c
Jan Janssen [Tue, 8 Feb 2022 10:03:20 +0000 (11:03 +0100)]
boot: Keep initrds separate from cmdline options
This is in preparation for LINUX_INITRD_MEDIA support in boot.c. One
downside is that adding or changing the used initrds by command line
editing is not possible anymore.
Jan Janssen [Mon, 7 Feb 2022 12:26:09 +0000 (13:26 +0100)]
boot: Edit config entry options inline
An edited entry command line should not be saved globally as it
should be tied to that one entry only.
Jan Janssen [Sun, 20 Feb 2022 11:17:10 +0000 (12:17 +0100)]
fundamental: Move some helpers into string-util-fundamental
Jan Janssen [Mon, 7 Feb 2022 12:05:56 +0000 (13:05 +0100)]
boot: Use cleanup handler to unload image
This also moves the message about failed image execution into
image_start() as we would otherwise show two error messages if
any of the preparatory steps failed.
Yu Watanabe [Tue, 5 Apr 2022 15:45:52 +0000 (00:45 +0900)]
network: drop support for old kernels which cannot set prefix route with non-main route table
Not sure when the issue was fixed.
- kernel-3.10 on CentOS 7 has the issue,
- kernel-4.18 on CentOS 8 works fine.
Note, the workaround dropped by the commit is not incomplete:
with an old kernel which has the issue, all non-prefix routes are
configured on the specified route table, but the prefix route is
configured on the main table. That should not work for most cases,
hence, the workaround is mostly meaningless.
Luca Boccassi [Sat, 21 May 2022 14:09:04 +0000 (15:09 +0100)]
Merge pull request #23339 from poettering/sockaddr-size-limit
tree-wide: add support for connecting to AF_UNIX sockets in the file system beyond the 108ch limit
Luca Boccassi [Sat, 21 May 2022 14:08:21 +0000 (15:08 +0100)]
Merge pull request #23342 from poettering/efi-monotonic-counter-random-seed
sd-boot: include GetNextMonotonicCount() in random seed calculations
Jan Janssen [Fri, 13 May 2022 12:25:32 +0000 (14:25 +0200)]
boot: Build with -flto=auto if available
Without this, we may get the following warning with gcc-12:
lto-wrapper: warning: using serial compilation of 2 LTRANS jobs
Jan Janssen [Fri, 20 May 2022 19:59:49 +0000 (21:59 +0200)]
macro: Use C11 noreturn only
No need to provide a fallback as we compile with gnu11.
Yu Watanabe [Wed, 18 May 2022 03:25:31 +0000 (12:25 +0900)]
networkctl: show error message provided through dbus
Prompted by #23416.
Luca Boccassi [Sat, 21 May 2022 14:00:51 +0000 (15:00 +0100)]
Merge pull request #23453 from keszybz/strv-parsing
Add strv methods with externally-supplied size argument and speed up parsing of /etc/hosts
Luca Boccassi [Sat, 21 May 2022 13:23:41 +0000 (14:23 +0100)]
Merge pull request #23463 from bluca/hwdb
Finalize NEWS and hwdb for v251
Benjamin Franzke [Thu, 19 May 2022 11:58:15 +0000 (13:58 +0200)]
tree-wide: Update homepage to systemd.io
Benjamin Franzke [Thu, 19 May 2022 11:54:24 +0000 (13:54 +0200)]
tree-wide: replace obsolete wiki links with systemd.io/manpages
All wiki pages that contain a deprecation banner
pointing to systemd.io or manpages are updated to
point to their replacements directly.
Helpful command for identification of available links:
git grep freedesktop.org/wiki | \
sed "s#.*\(https://www.freedesktop.org/wiki[^ $<'\\\")]*\)\(.*\)#\\1#" | \
sort | uniq
Benjamin Franzke [Thu, 19 May 2022 12:18:34 +0000 (14:18 +0200)]
tree-wide: streamline wiki links
* Avoid traling slash as most links are defined without.
* Always use https:// protocol and www. subdomain
Allows for easier tree-wide linkvalidation
for our migration to systemd.io.
Luca Boccassi [Sat, 21 May 2022 11:46:16 +0000 (12:46 +0100)]
NEWS: finalize
Luca Boccassi [Sat, 21 May 2022 11:44:36 +0000 (12:44 +0100)]
hwdb: update via ninja -C build update-hwdb
Luca Boccassi [Sat, 21 May 2022 11:43:19 +0000 (12:43 +0100)]
NEWS: update contributors list
Yu Watanabe [Fri, 20 May 2022 18:03:21 +0000 (03:03 +0900)]
sysext: refuse empty release ID to avoid triggering assertion
Otherwise, the assertion in extension_release_validate() will be
triggered.
Yu Watanabe [Fri, 20 May 2022 19:14:03 +0000 (04:14 +0900)]
test: add test for bus introspection of portable1
Follow-up for #23454.
Yu Watanabe [Fri, 20 May 2022 19:26:03 +0000 (04:26 +0900)]
Merge pull request #23439 from keszybz/kernel-install-verbose
Make kernel-install --verbose more verbose and some autodetection logic fixups
Yu Watanabe [Fri, 20 May 2022 19:22:17 +0000 (04:22 +0900)]
Merge pull request #23451 from medhefgo/boot-static-assert
boot: C11/static_assert
Luca Boccassi [Fri, 20 May 2022 13:00:39 +0000 (14:00 +0100)]
sd-bus: add comment and test in sd_bus_path_decode() for empty string
3970 e = object_path_startswith(path, prefix);
(gdb) p path
$1 = 0x55c5a166f768 "/org/freedesktop/portable1/image"
(gdb) p prefix
$2 = 0x55c59ffc2928 "/org/freedesktop/portable1/image"
(gdb) p e
$1 = 0x5581a1675788 ""
This can be a bit confusing in certain cases, so add a comment and a
test to make the behaviour clearer and explicit.
Yu Watanabe [Fri, 20 May 2022 18:41:22 +0000 (03:41 +0900)]
Merge pull request #23454 from keszybz/portable-introspect
Fix bus introspection of portable1
Zbigniew Jędrzejewski-Szmek [Thu, 19 May 2022 20:22:44 +0000 (22:22 +0200)]
kernel-install: restore priority of check for /boot/loader/entries
Before
9e82a74cb0f08a288f9db228a0b5bec8a7188cdb, we had a check like the
following:
if [[ -d /efi/loader/entries ]] || [[ -d /efi/$MACHINE_ID ]]; then
ENTRY_DIR_ABS="/efi/$MACHINE_ID/$KERNEL_VERSION"
elif [[ -d /boot/loader/entries ]] || [[ -d /boot/$MACHINE_ID ]]; then
ENTRY_DIR_ABS="/boot/$MACHINE_ID/$KERNEL_VERSION"
elif [[ -d /boot/efi/loader/entries ]] || [[ -d /boot/efi/$MACHINE_ID ]]; then
ENTRY_DIR_ABS="/boot/efi/$MACHINE_ID/$KERNEL_VERSION"
…
In stock Fedora 34-, /efi isn't used, but grub creates /boot/loader/entries and
installs kernels and initrds directly in /boot. Thus the second arm of the
check wins, and we end up with BOOT_ROOT=/boot.
After
9e82a74cb0f08a288f9db228a0b5bec8a7188cdb, we iterate over the inner
directory first and over the second directory later:
[ -d /efi/<machine-id> ]
[ -d /boot/efi/<machine-id> ]
[ -d /boot/<machine-id> ]
[ -d /efi/Default ]
[ -d /boot/efi/Default ]
[ -d /boot/Default ]
[ -d /efi/loader/entries ]
[ -d /boot/efi/loader/entries ]
[ -d /boot/loader/entries ]
This was partially reverted by
447a822f8ee47b63a4cae00423c4d407bfa5e516 which
removed Default from the list, and
a5307e173bf86d695fe85b8e15e91126e8618a14,
which moved checks for /boot up, so we ended up with:
[ -d /efi/<machine-id> ]
[ -d /boot/<machine-id> ]
[ -d /boot/efi/<machine-id> ]
[ -d /efi/loader/entries ]
[ -d /boot/loader/entries ]
[ -d /boot/efi/loader/entries ]
6637cf9db67237857279262d93ee0e39023c5b85 added autodetection of an entry
token, so we end up checking the following suffixes:
<machine-id>, $IMAGE_ID, $ID, Default
But the important unchanged characteristic is that we iterate over the suffix
first. Sadly this breaks Fedora, because we find /boot/efi/<machine-id> before
we could find /boot/loader/entries. It seems that every possible aspect of
behaviour matters for somebody, so we need to keep the original order of
detection.
With the patch:
[ -d /efi/<machine-id> ]
...
[ -d /efi/loader/entries ]
[ -d /boot/<machine-id> ]
...
[ -d /boot/loader/entries ]
[ -d /boot/efi/<machine-id> ]
...
[ -d /boot/efi/loader/entries ]
Note that we need to check for "loader/entries" too, even though it is not
an entry-token candidate, so that we get the same detection priority as
before.
Fixes https://bugzilla.redhat.com/show_bug.cgi?id=
2071034.
Zbigniew Jędrzejewski-Szmek [Thu, 19 May 2022 08:38:27 +0000 (10:38 +0200)]
resolved: use strv_extend_with_size() to avoid slow parsing of /etc/hosts
https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=43942 is a simple case
where a repeated entry generates a timeout. I didn't import that case, but
generated a simpler one by hand.
$ time build/fuzz-etc-hosts test/fuzz/fuzz-etc-hosts/timeout-many-entries
test/fuzz/fuzz-etc-hosts/timeout-many-entries... ok
build/fuzz-etc-hosts test/fuzz/fuzz-etc-hosts/timeout-many-entries 3.17s (old)
↓
build/fuzz-etc-hosts test/fuzz/fuzz-etc-hosts/timeout-many-entries 0.11s (new)
I considered simply disallowing too many aliases. E.g. microsoft appearently
sometimes ignores entries after the ninth [1], and other systems set stringent
limits [2,3], but the recommended way to get around that is to simply use more
lines (as is done in the sample), so this wouldn't change anything.
Even if we cannot put all those names in a reply packet, the resolution from
the alias to the address should work. I think cases where people define lots
and lots of aliases through some programmatic interface is realistic, for
example for a blocklist, and such a file shouldn't bring resolved down to its
knees.
[1] https://superuser.com/questions/932112/is-there-a-maximum-number-of-hostname-aliases-per-line-in-a-windows-hosts-file
[2] https://library.netapp.com/ecmdocs/ECMP1516135/html/GUID-
C6F3B6D1-232D-44BB-A76C-
3304C19607A3.html
[3] https://www.ibm.com/docs/en/zos/2.1.0?topic=optional-creating-etchosts
Zbigniew Jędrzejewski-Szmek [Thu, 19 May 2022 07:50:48 +0000 (09:50 +0200)]
basic/strv: add optimizable version of strv_push/consume/extend
This will be helpful in cases where we are repeatedly adding entries
to a long strv and want to skip the iteration over old entries leading
to quadratic behaviour.
Note that we don't want to calculate the length if not necessary, so
the calculation is delayed until after we've checked that value is not
NULL.
Zbigniew Jędrzejewski-Szmek [Fri, 20 May 2022 12:53:50 +0000 (14:53 +0200)]
portabled: wrap long lines and fix typo in error message
Zbigniew Jędrzejewski-Szmek [Fri, 20 May 2022 12:53:22 +0000 (14:53 +0200)]
portabled: refuse queries for empty image name
I took inspiration from pid1:
bus_unit_find()
→ find_unit()
→ manager_load_unit_from_dbus_path()
→ unit_name_from_dbus_path()
→ !startswith(path, "/org/freedesktop/systemd1/unit/")
→ return -EINVAL
←
←
←
← if (r < 0) return 0
← 0
←
i.e. we return 0 when queried for "/org/freedesktop/systemd1/unit".
Fixes #23445.
Yu Watanabe [Fri, 20 May 2022 07:49:14 +0000 (16:49 +0900)]
shared/extension-release: drop unnecessary strna() wrapper
These are not NULL.
Luca Boccassi [Fri, 20 May 2022 11:24:45 +0000 (12:24 +0100)]
portable: reject root directories without an ID field in os-release
We always require at least ID to be set in os-release, reject
and propagate error to the caller instead of asserting later
Luca Boccassi [Fri, 20 May 2022 11:05:34 +0000 (12:05 +0100)]
dissect: ID from os-release should be non-empty, not just non-NULL
Jan Janssen [Fri, 20 May 2022 10:49:50 +0000 (12:49 +0200)]
macro: Use C11 static_assert
Now that we require C11 everywhere, we can always use static_assert.
Jan Janssen [Fri, 20 May 2022 10:47:43 +0000 (12:47 +0200)]
boot: Build with C11 too
Zbigniew Jędrzejewski-Szmek [Thu, 19 May 2022 13:34:32 +0000 (15:34 +0200)]
kernel-install: fix detection of entry-token if $BOOT_ROOT is configured
If $BOOT_ROOT is specified, but entry-token not, we'd skip the detection
altogether, effectively defaulting to entry-token=machine-id.
The case where $BOOT_ROOT was not specied, but entry-token was configured
was handled correctly.
This patch makes the handling of both symmetrical, i.e. will only set what
wasn't configured.
Zbigniew Jędrzejewski-Szmek [Thu, 19 May 2022 12:50:07 +0000 (14:50 +0200)]
kernel-install: debug the configuration detection if --verbose
No changes to behaviour, but let's print everything out as we discover it.
The docs say that BOOT_ROOT can be specified by the environment. I have
it locally in /etc/kernel/install.conf, and then the override doesn't work.
It'd be nice to handle such cases more reliably.
Khem Raj [Thu, 19 May 2022 18:01:04 +0000 (11:01 -0700)]
Add sys/stat.h for S_IFDIR
Fixes
../git/src/shared/mkdir-label.c:13:61: error: use of undeclared identifier 'S_IFDIR'
r = mac_selinux_create_file_prepare_at(dirfd, path, S_IFDIR);
Signed-off-by: Khem Raj <raj.khem@gmail.com>
Daan De Meyer [Thu, 19 May 2022 21:59:50 +0000 (23:59 +0200)]
sd-bus: Fix introspect memory leak
We have to free the contents of the set on top of the set itself.
Fixes #23443.
Zbigniew Jędrzejewski-Szmek [Thu, 19 May 2022 12:43:03 +0000 (14:43 +0200)]
kernel-install: bail if machine id generation fails
The call is unlikely to fail, but systemd-id128 might not be installed.
We shouldn't continue with the empty string.
Zbigniew Jędrzejewski-Szmek [Thu, 19 May 2022 12:23:48 +0000 (14:23 +0200)]
kernel-install: actually export KERNEL_INSTALL_VERBOSE
:(
Zbigniew Jędrzejewski-Szmek [Thu, 19 May 2022 07:05:48 +0000 (09:05 +0200)]
version comparisons: stop using locale-dependent isdigit()
The docs are not entirely clear what glyphs qualify as digits.
The function is supposed to be locale-dependent, but I couldn't
get it to return true on any non-ascii digits I tried.
But it's better to be safe than sorry, let's use our trivial
replacement instead.
Zbigniew Jędrzejewski-Szmek [Wed, 18 May 2022 08:40:54 +0000 (10:40 +0200)]
test-compare-versions: basic test for systemd-analyze compare-versions
Zbigniew Jędrzejewski-Szmek [Tue, 17 May 2022 14:28:45 +0000 (16:28 +0200)]
analyze: add compare-versions
The interface, output, and exit status convention are all taken directly from
rpmdev-vercmp and dpkg --compare-versions. The implementation is different
though. See test-string-util for a list of known cases where we compare
strings incompatibly.
The idea is that this string comparison function will be declared as "the"
method to use for boot entry ordering in the specification and similar
uses. Thus it's nice to allow users to compare strings.
Zbigniew Jędrzejewski-Szmek [Thu, 19 May 2022 06:54:49 +0000 (08:54 +0200)]
Merge pull request #23432 from bnf/docs-relative-links
docs: use relative links
Daan De Meyer [Wed, 18 May 2022 22:44:31 +0000 (00:44 +0200)]
portable: Remove unnecessary assert()
Fixes #23433
matches is plumbed through until it finally gets used in unit_match()
which can deal with NULL matches so the assert() is unnecessary and
can be removed.
The two call sites of extract_image_and_extensions() also don't
assert() on matches either.
Luca Boccassi [Wed, 18 May 2022 23:15:30 +0000 (00:15 +0100)]
test: double timeout of TEST-50-DISSECT
It times out on slow CIs near the end of the test, eg:
[ 553.539368] kernel: loop_reread_partitions: partition scan of loop3 () failed (rc=-5)
TEST-50-DISSECT: (timeout)
https://autopkgtest.ubuntu.com/results/autopkgtest-focal-upstream-systemd-ci-systemd-ci/focal/ppc64el/s/systemd-upstream/20220518_172659_bf20f@/log.gz
Zbigniew Jędrzejewski-Szmek [Tue, 17 May 2022 14:25:06 +0000 (16:25 +0200)]
analyze: allow verbs to return positive failure
No functional change is intended. The verbs where it wasn't immediately
clear if the success exit status is 0 or >= 0 are changed to explicitly
return 0. (I think it's better to be explicit than to rely on some call
stack always returning 0 on success.)
Some other functions are cleaned up to be more idiomatic.
Zbigniew Jędrzejewski-Szmek [Wed, 18 May 2022 16:30:36 +0000 (18:30 +0200)]
analyze: use automatic cleanup in one more place
Zbigniew Jędrzejewski-Szmek [Wed, 18 May 2022 16:29:56 +0000 (18:29 +0200)]
analyze: sort/fix header includes in one place
Yu Watanabe [Wed, 18 May 2022 15:15:12 +0000 (00:15 +0900)]
meson: install 70-power-switch.rules
Fixes a bug introduced by
155078c835a00fed264a7b36b06f709d9b57cb1b.
Fixes #23425.
Tomasz Pala [Wed, 18 May 2022 16:11:42 +0000 (18:11 +0200)]
udev: fixed config_parse_ifalias() logic not to skip setting IFLA_IFALIAS
this flaw was introduced in
6a74900002981eacbde382f659ab706ca36155cc
Benjamin Franzke [Tue, 17 May 2022 22:37:53 +0000 (00:37 +0200)]
docs: streamline headline structure in JOURNAL_EXPORT_FORMATS.md
Add one general first-level headline and transform
the existing ones into second-level headlines.
Benjamin Franzke [Tue, 17 May 2022 22:05:38 +0000 (00:05 +0200)]
docs: use relative links
Allows for links to work both on systemd.io (or forks) and
when viewed on https://github.com/systemd/systemd/tree/main/docs
Note that the markdown links are converted by jekyll-relative-links[1]
to html. This plugin is enabled by default on github pages[2][3].
Due to a bug in jekyll-relative-links – see
https://github.com/benbalter/jekyll-relative-links/issues/61 –
we need to avoid line-wrapped links when using relative markdown links.
[1] https://github.com/benbalter/jekyll-relative-links
[2] https://github.blog/2016-12-05-relative-links-for-github-pages/
[3] https://docs.github.com/en/pages/setting-up-a-github-pages-site-with-jekyll/about-github-pages-and-jekyll#plugins
Zbigniew Jędrzejewski-Szmek [Wed, 18 May 2022 11:09:50 +0000 (13:09 +0200)]
Merge pull request #23417 from bnf/docs-dark-mode
docs: add dark mode
Yu Watanabe [Wed, 18 May 2022 08:57:05 +0000 (17:57 +0900)]
doc: fix typo
Yu Watanabe [Wed, 18 May 2022 08:36:33 +0000 (17:36 +0900)]
Merge pull request #23422 from keszybz/two-doc-tweaks
Two doc tweaks
Zbigniew Jędrzejewski-Szmek [Wed, 18 May 2022 06:28:48 +0000 (08:28 +0200)]
README: fix typo
Zbigniew Jędrzejewski-Szmek [Tue, 17 May 2022 08:32:20 +0000 (10:32 +0200)]
NEWS: reword description of credstore
The "in" at the end made the sentence hard to parse…
Benjamin Franzke [Tue, 17 May 2022 11:48:27 +0000 (13:48 +0200)]
docs: overhaul styling for example log messages on startpage
* Use brand-green for demo log messages on the startpage
instead of the default `green` color defined by the browser vendor
(after all, the brand green color is intended to reflect the
boot status output)
* Add a matching blue intro color (mixed using HSL from brand-green
by 55deg hue rotation and 4% lightness)
* Use a defined font-size
(to avoid blurry rendering at 13.33333px, due to font-size: smaller)
* Add possibility for the browser to show horizontal scrollbar
(avoid overflow in mobile view)
Benjamin Franzke [Tue, 17 May 2022 08:38:07 +0000 (10:38 +0200)]
docs: add dark mode
Respect the user agent property `prefers-color-scheme` by
rendering the documentation in dark mode, if requested.
Reorganise CSS to store the color palette into CSS variables
and reference these from another set of CSS variables that
are dynamically switched based on the prefers-color-scheme
media query.
Light mode variables stay they same as before,
but to ease color mixing, the current RGB values
have been transformed to HSL (using chrome devtools).
The current body background is now --sd-gray-extralight,
the current body color is now --sd-gray-extradark.
Other gray-variations, needed for dark-mode constrasts
are derived from these colors using HSL lightness shifting.
The systemd brand black color is used as dark mode background
and a matching extralight gray font color has been selected.
The link font-weight is reduced to 400 in dark mode,
as the green color on dark ground becomes to overwhelming
with a bold font.
The systemd logo color is dynamically swapped by using
the special fill value `currentColor` for dark/light-mode
depending parts – as per specification on brand.systemd.io
Benjamin Franzke [Tue, 17 May 2022 17:05:29 +0000 (19:05 +0200)]
docs: regenerate highlight style and streamline background overwrite
* Update to rougify 3.26.1 styling
* Adapt background overwrite by removing default background color
and only adding explicit overwrites for syntax error
(error stylings appear for example in json-excerpts –
see HACKING.md – and are therefore hidden by our css)
Benjamin Franzke [Tue, 17 May 2022 13:54:46 +0000 (15:54 +0200)]
docs: avoid multiple first-level headlines
One document should only contain one main
headline, both for structuring and for
visual reasons.
Relevant cases found via:
git grep -A2 '^# ' docs/
Benjamin Franzke [Tue, 17 May 2022 15:05:22 +0000 (17:05 +0200)]
docs: provide a first level headline for the frontpage
* Provides a nice introduction to the intro paragraph
* Ensures text of subpages start at the same position as the intro text
on the homepage
=> less visual "jumps" while navigating
Benjamin Franzke [Tue, 17 May 2022 12:21:13 +0000 (14:21 +0200)]
docs: respect default browser font-size
16px is default by all browser vendors when
font-setting is defined to be 'medium'.
Scale all font sizes and margins to
based on 16px base size.
Benjamin Franzke [Tue, 17 May 2022 13:57:14 +0000 (15:57 +0200)]
docs: add reasonable difference between h2 and h3 font-size
Benjamin Franzke [Tue, 17 May 2022 14:59:00 +0000 (16:59 +0200)]
docs: replace <pre>, <code> and <tt> tags by backticks
Let jekyll render a proper codeblock, instead
of using custom HTML code in markdown.
Also <tt> is deprecated.
Benjamin Franzke [Tue, 17 May 2022 11:11:03 +0000 (13:11 +0200)]
docs: adapt theme color meta property
The theme color is used on android to style the chrome
browser-ui with a color that suits the webpage.
Use the dark brand color instead of a random default blue color
in order to fit to the rest of the color scheme.
Benjamin Franzke [Tue, 17 May 2022 08:19:51 +0000 (10:19 +0200)]
docs: remove unneeded font-related attributes from svg logo
The font has been vectorized and therefore all
font related properties are ignored anyway.
Benjamin Franzke [Tue, 17 May 2022 08:16:15 +0000 (10:16 +0200)]
docs: use whole numbers for circle in page-logo
0.001 is usually rounded to 0 by browsers, still,
better to be explicit and save some bytes.